DataConnectionProperties.TryGetValue, méthode

Récupère la valeur de la propriété spécifiée.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Public Function TryGetValue ( _
    key As String, _
    <OutAttribute> ByRef value As Object _
) As Boolean
public bool TryGetValue(
    string key,
    out Object value
)
public:
virtual bool TryGetValue(
    String^ key, 
    [OutAttribute] Object^% value
) sealed
abstract TryGetValue : 
        key:string * 
        value:Object byref -> bool  
override TryGetValue : 
        key:string * 
        value:Object byref -> bool
public final function TryGetValue(
    key : String, 
    value : Object
) : boolean

Paramètres

  • key
    Type : String

    Nom de la propriété pour récupérer la valeur pour.

  • value
    Type : Object%

    Lorsque cette méthode est retournée, elle contient la valeur correspondant à la propriété spécifiée. Ce paramètre est passé sans être initialisé.

Valeur de retour

Type : Boolean
true si la propriété est introuvable ; sinon, false.

Implémentations

IDictionary.TryGetValue(UTP, UTP)

Exceptions

Exception Condition
ArgumentNullException

Le paramètre key est nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

DataConnectionProperties Classe

Microsoft.VisualStudio.Data.Framework, espace de noms