KeyNotFoundException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the KeyNotFoundException class with serialized data.
Assembly: mscorlib (in mscorlib.dll)
protected KeyNotFoundException( SerializationInfo info, StreamingContext context )
- Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.