Edit

Share via


EmailAddressDictionary.TryGetValue(EmailAddressKey, EmailAddress) Method

Definition

Tries to get the e-mail address that is associated with the specified key.

public:
 bool TryGetValue(Microsoft::Exchange::WebServices::Data::EmailAddressKey key, [Runtime::InteropServices::Out] Microsoft::Exchange::WebServices::Data::EmailAddress ^ % emailAddress);
public bool TryGetValue (Microsoft.Exchange.WebServices.Data.EmailAddressKey key, out Microsoft.Exchange.WebServices.Data.EmailAddress emailAddress);
Public Function TryGetValue (key As EmailAddressKey, ByRef emailAddress As EmailAddress) As Boolean

Parameters

key
EmailAddressKey

The key that is associated with the e-mail address.

emailAddress
EmailAddress

If the specified key is found, contains the e-mail address 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 an e-mail address that is associated with the specified key; otherwise, false.

Applies to