Edit

Share via


PhoneNumberDictionary.TryGetValue(PhoneNumberKey, String) Method

Definition

Tries to get the phone number that is associated with the specified key.

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

Parameters

key
PhoneNumberKey

The key that is associated with the phone number.

phoneNumber
String

If the specified key is found, contains the phone number that is associated with the specified key; otherwise, a null reference (Nothing in Visual Basic). This parameter is passed uninitialized.

Returns

true if the dictionary contains a phone number that is associated with the specified key; otherwise, false.

Applies to