Metodo IReadOnlyDictionary<K, T>.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
Function TryGetValue ( _
    key As K, _
    <OutAttribute> ByRef value As T _
) As Boolean
'Utilizzo
Dim instance As IReadOnlyDictionary 
Dim key As K
Dim value As T
Dim returnValue As Boolean 

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

Parametri

  • key
    Tipo: K
    The key of the value to get.
  • value
    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. This parameter is passed uninitialized.

Valore restituito

Tipo: System.Boolean
true if the specified key is found in the dictionary; otherwise, false.

Vedere anche

Riferimento

IReadOnlyDictionary<K, T> Interfaccia

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