Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>.ContainsKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.