System.Web.HttpException.GetObjectData Method

Gets information about the exception and adds it to the System.Runtime.Serialization.SerializationInfo object.

Syntax

public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

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.

Remarks

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.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0