共用方式為


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 命名空間