Поделиться через


Метод IReadOnlyDictionary<K, T>.ContainsKey

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

Пространство имен:  Microsoft.SqlServer.Management.Sdk.Sfc
Сборка:  Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Синтаксис

'Декларация
Function ContainsKey ( _
    key As K _
) As Boolean
'Применение
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

Параметры

  • key
    Тип: K
    They key to locate in the dictionary.

Возвращаемое значение

Тип: System.Boolean
true if the key is found in the dictionary; otherwise false.

См. также

Справочник

IReadOnlyDictionary<K, T> Интерфейс

Пространство имен Microsoft.SqlServer.Management.Sdk.Sfc