DataConnectionProperties.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.
Récupère la valeur de la propriété spécifiée.
public:
virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetValue (string key, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Function TryGetValue (key As String, ByRef value As Object) As Boolean
Paramètres
- key
- String
Nom de la propriété pour laquelle récupérer la valeur.
- value
- Object
Lorsque cette méthode est retournée, contient la valeur qui correspond à la propriété spécifiée. Ce paramètre est passé sans être initialisé.
Retours
true si la propriété est trouvée ; Sinon, false.
Exceptions
Le paramètre key est null.