Constructs and initializes a new instance of the KeyNotFoundException class.
- message
- The message that describes the error. The content of message is intended to be understandable to the user. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- innerException
- Documentation for this section has not yet been entered.
This constructor initializes the KeyNotFoundException.Message property of the new instance using message, and the KeyNotFoundException.InnerException property using innerException. If message is null, the KeyNotFoundException.Message property is initialized to an implementation-specific message.
Note: For information on inner exceptions, see Exception.InnerException.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0