다음을 통해 공유


IReadOnlyDictionary<TKey, TValue>.ContainsKey Method

Determines whether the dictionary contains a specific key.

Namespace:  Microsoft.BusinessData.Infrastructure.Collections
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function ContainsKey ( _
    key As TKey _
) As Boolean
'Usage
Dim instance As IReadOnlyDictionary
Dim key As TKey
Dim returnValue As Boolean

returnValue = instance.ContainsKey(key)
bool ContainsKey(
    TKey key
)

Parameters

  • key
    Type: TKey

    The specified key to search for.

Return Value

Type: System.Boolean
true if the key is found; otherwise, false.

See Also

Reference

IReadOnlyDictionary<TKey, TValue> Interface

IReadOnlyDictionary<TKey, TValue> Members

Microsoft.BusinessData.Infrastructure.Collections Namespace