DataConnectionProperties.TryGetValue(String, Object) Méthode

Définition

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

Boolean

true si la propriété est trouvée ; Sinon, false.

Exceptions

Le paramètre key est null.

S’applique à