ImAddressDictionary.TryGetValue(ImAddressKey, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.