MessageProperties.TryGetValue(String, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le MessageProperties nom contient un nom spécifique et récupère sa valeur.
public:
virtual bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetValue(string name, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Function TryGetValue (name As String, ByRef value As Object) As Boolean
Paramètres
- name
- String
Nom de l’élément à localiser.
- value
- Object
Valeur de l’élément trouvé.
Retours
true si le MessageProperties contient un élément avec l’élément spécifié name; sinon, false.