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.