Partager via


AdoDotNetConnectionProperties.TryGetValue, méthode

Récupère une valeur correspondant à la clé fournie en appelant la méthode sur la classe de base 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 : System.String
    Le nom de la propriété à récupérer.
  • value
    Type : System.Object%
    Paramètre de sortie.Contient la valeur de la propriété, si la propriété existe.

Valeur de retour

Type : System.Boolean
true si la propriété est trouvée ; sinon, false.

Implémentations

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetConnectionProperties Classe

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