OpenMetaverse Protocol Library Developers API Documentation
TryGetValue Method (key, value)
NamespacesOpenMetaverse ObservableDictionary < (Of < ( <' TKey, TValue > ) > ) > TryGetValue(TKey, TValue % )
Try to get entry from the 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 ObservableDictionary:
   Avatar av;

if
(Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID,

out av))
       Console.WriteLine(
"Found Avatar {0}",
av.Name);
See Also
[!:ObservableDictionary]
ObjectsAvatars

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