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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.