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.
This constructor initializes the KeyNotFoundException.Message property of the new instance using message. If message is null, the KeyNotFoundException.Message property is initialized to an implementation-specific message. The KeyNotFoundException.InnerException property is initialized to null.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0