Compartir a través de


IReadOnlyDictionary<K, T>.ContainsKey Método

Determines whether the element with the specified key is contained in the dictionary.

Espacio de nombres:  Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado:  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxis

'Declaración
Function ContainsKey ( _
    key As K _
) As Boolean
'Uso
Dim instance As IReadOnlyDictionary 
Dim key As K
Dim returnValue As Boolean 

returnValue = instance.ContainsKey(key)
bool ContainsKey(
    K key
)
bool ContainsKey(
    K key
)
abstract ContainsKey : 
        key:'K -> bool
function ContainsKey(
    key : K
) : boolean

Parámetros

  • key
    Tipo: K
    They key to locate in the dictionary.

Valor devuelto

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

Vea también

Referencia

IReadOnlyDictionary<K, T> Interfaz

Espacio de nombres Microsoft.SqlServer.Management.Sdk.Sfc