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: TKeyThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.