AdoDotNetConnectionProperties.TryGetValue, méthode

Extrait une valeur qui correspond à la clé fournie en appelant cette méthode pour la classe de base du générateur de chaîne de connexion du .NET Framework (DbConnectionStringBuilder).

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

Syntaxe

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

Paramètres

  • key
    Type : String

    Nom de la propriété à récupérer.

  • value
    Type : Object%

    Paramètre de sortie. Contient la valeur de propriété, si la propriété existe.

Valeur de retour

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

Implémentations

IDictionary.TryGetValue(UTP, UTP)

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetConnectionProperties Classe

Microsoft.VisualStudio.Data.Framework.AdoDotNet, espace de noms