OpenMetaverse Protocol Library Developers API Documentation
TryGetValue Method (key, value)
NamespacesOpenMetaverse InternalDictionary < (Of < ( <' TKey, TValue > ) > ) > TryGetValue(TKey, TValue % )
Try to get entry from with specified key
Declaration Syntax
C#
public 
bool 
TryGetValue(
        TKey 
key,
        
out TValue 
value
)
Parameters
key ( TKey )
Key to use for lookup
value ( TValue %)
Value returned
Return Value
true True true if specified key exists, false False false if not found
Examples
  Copy imageCopy
// find your avatar using the
Simulator.ObjectsAvatars InternalDictionary:
   Avatar av;
   
if
(Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID,

out av))
       Console.WriteLine(
"Found Avatar {0}",
av.Name);
See Also
InternalDictionary
ObjectsAvatars

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)