ReadOnlyDictionary<TKey, TValue>.ContainsKey Method

Gets a flag that indicates that the specified key occurs in the dictionary.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function ContainsKey ( _
    key As TKey _
) As Boolean
public bool ContainsKey(
    TKey key
)
public:
virtual bool ContainsKey(
    TKey key
) sealed
abstract ContainsKey : 
        key:'TKey -> bool  
override ContainsKey : 
        key:'TKey -> bool
public final function ContainsKey(
    key : TKey
) : boolean

Parameters

  • key
    Type: TKey

    The key to search for.

Return Value

Type: System.Boolean
True if the dictionary contains the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

.NET Framework Security

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.TeamFoundation.Client Namespace