HttpException.GetObjectData Method

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

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

public override void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
Type: System.Runtime.Serialization.StreamingContext

The StreamingContext that holds the contextual information about the source or destination.

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

The GetObjectData method adds information about the exception to the SerializationInfo object that is targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo that is transmitted over the stream.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft