← Interactive API Explorer
Namespace: System.Collections.Generic

KeyNotFoundException

The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.

Methods (1)

KeyNotFoundException(String)Constructor
Initializes a new instance of the KeyNotFoundException class with the specified error message.
ParameterDescription
messageThe message that describes the error.