Επεξεργασία

Κοινή χρήση μέσω


Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>.ContainsKey Method

Definition

Determines whether the Dictionary<TKey,TValue> contains the specified alternate key.

public:
 bool ContainsKey(TAlternateKey key);
public bool ContainsKey (TAlternateKey key);
member this.ContainsKey : 'AlternateKey -> bool
Public Function ContainsKey (key As TAlternateKey) As Boolean

Parameters

key
TAlternateKey

The alternate key to check.

Returns

true if the key is in the dictionary; otherwise, false.

Exceptions

key is null.

Applies to