Gets information about the exception and adds it to the System.Runtime.Serialization.SerializationInfo object.
- info
- The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- The System.Runtime.Serialization.StreamingContext that holds the contextual information about the source or destination.
The HttpException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) method adds information about the exception to the System.Runtime.Serialization.SerializationInfo object that is targeted for serialization. During deserialization, the exception is reconstituted from the System.Runtime.Serialization.SerializationInfo that is transmitted over the stream.