PhoneNumberDictionary.TryGetValue(PhoneNumberKey, 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 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.