DataConnectionProperties.TryGetValue (Método)

Recupera el valor de la propiedad especificada.

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

Sintaxis

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

Parámetros

  • key
    Tipo: System.String
    El nombre de propiedad para recuperar el valor para.
  • value
    Tipo: System.Object%
    Cuando este método vuelve, contiene el valor que corresponde a la propiedad especificada.Este parámetro se pasa sin inicializar.

Valor devuelto

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

Implementaciones

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

Excepciones

Excepción Condición
ArgumentNullException

El valor del parámetro key es nullreferencia null (Nothing en Visual Basic).

Seguridad de .NET Framework

Vea también

Referencia

DataConnectionProperties Clase

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