Metodo SfcDictionaryCollection<T, K, ParentT>.TryGetValue

Gets the value associated with the specified key.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Public Function TryGetValue ( _
    key As K, _
    <OutAttribute> ByRef obj As T _
) As Boolean
'Utilizzo
Dim instance As SfcDictionaryCollection 
Dim key As K
Dim obj As T
Dim returnValue As Boolean 

returnValue = instance.TryGetValue(key, _
    obj)
public bool TryGetValue(
    K key,
    out T obj
)
public:
bool TryGetValue(
    K key, 
    [OutAttribute] T% obj
)
member TryGetValue : 
        key:'K * 
        obj:'T byref -> bool
public function TryGetValue(
    key : K, 
    obj : T
) : boolean

Parametri

  • key
    Tipo: K
    The key of the value to get.
  • obj
    Tipo: T%
    When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.

Valore restituito

Tipo: System.Boolean
True if the collection contains an element with the specified key; otherwise, false.

Vedere anche

Riferimento

SfcDictionaryCollection<T, K, ParentT> Classe

Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc