ImAddressDictionary.TryGetValue(ImAddressKey, String) Method

Definition

Tries to get the instant messaging (IM) address that corresponds to the specified key.

public:
 bool TryGetValue(Microsoft::Exchange::WebServices::Data::ImAddressKey key, [Runtime::InteropServices::Out] System::String ^ % imAddress);
public bool TryGetValue (Microsoft.Exchange.WebServices.Data.ImAddressKey key, out string imAddress);
Public Function TryGetValue (key As ImAddressKey, ByRef imAddress As String) As Boolean

Parameters

key
ImAddressKey

The key that corresponds to the IM address.

imAddress
String

When this method returns, contains the IM address that is associated with the specified key, if the key is found; otherwise, a null reference (Nothing in Visual Basic). This parameter is passed uninitialized.

Returns

true if the dictionary contains an IM address that is associated with the specified key; otherwise, false.

Applies to