Condividi tramite


Metodo DataConnectionProperties.TryGetValue

Recupera il valore della proprietà specificata.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Sintassi

'Dichiarazione
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

Parametri

  • key
    Tipo: String

    Il nome della proprietà per recuperare il valore per.

  • value
    Tipo: Object%

    Quando il metodo restituisce, contiene il valore corrispondente alla proprietà specificata. Questo parametro viene passato non inizializzato.

Valore restituito

Tipo: Boolean
true se la proprietà viene trovata; in caso contrario, false.

Implementa

IDictionary.TryGetValue(UTP, UTP)

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro key è nullriferimento null (Nothing in Visual Basic).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataConnectionProperties Classe

Spazio dei nomi Microsoft.VisualStudio.Data.Framework