Try to get entry from the with specified
key
Declaration Syntax
C# |
public bool TryGetValue( TKey key, out TValue value )
Return Value
true
True
true
if specified key exists,
false
False
false
if not found
Examples
Copy | |
---|---|
// find your avatar using the Simulator.ObjectsAvatars ObservableDictionary: Avatar av; if (Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID, out av)) Console.WriteLine( "Found Avatar {0}", av.Name); |
See Also
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)