AdoDotNetConnectionProperties.TryGetValue (Método)

Recupera un valor que corresponde a la clave proporcionada llamando a este método en la clase base del generador de la cadena de conexión de .NET Framework (DbConnectionStringBuilder).

Espacio de nombres:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Ensamblado:  Microsoft.VisualStudio.Data.Framework (en Microsoft.VisualStudio.Data.Framework.dll)

Sintaxis

'Declaración
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

Parámetros

  • key
    Tipo: System.String
    El nombre de propiedad que se va a recuperar.
  • value
    Tipo: System.Object%
    Parámetro de salida.Contiene el valor de la propiedad, si existe.

Valor devuelto

Tipo: System.Boolean
true si se encuentra la propiedad; si no, false.

Implementaciones

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

Seguridad de .NET Framework

Vea también

Referencia

AdoDotNetConnectionProperties Clase

Microsoft.VisualStudio.Data.Framework.AdoDotNet (Espacio de nombres)