Share via


ReadOnlyDictionary<TKey, TValue>.ContainsKey Method

Determines whether the dictionary contains a specific key.

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

Syntax

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

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

Parameters

  • key
    Type: TKey

    The key to search for.

Return Value

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

Implements

IReadOnlyDictionary<TKey, TValue>.ContainsKey(TKey)

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

ReadOnlyDictionary<TKey, TValue> Members

Microsoft.SharePoint.BusinessData.Infrastructure.Collections.Client Namespace