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.