Partager via


ImAddressDictionary.TryGetValue(ImAddressKey, String) Méthode

Définition

Tente d’obtenir l’adresse de messagerie instantanée qui correspond à la clé spécifiée.

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

Paramètres

key
ImAddressKey

Clé qui correspond à l’adresse de messagerie instantanée.

imAddress
String

Lorsque cette méthode est retournée, contient l’adresse de messagerie instantanée associée à la clé spécifiée, si la clé est trouvée ; sinon, une référence null (Nothing en Visual Basic). Ce paramètre est passé non initialisé.

Retours

true si le dictionnaire contient une adresse de messagerie instantanée associée à la clé spécifiée ; sinon, false.

S’applique à