LinqDataSourceValidationException.GetObjectData Method (SerializationInfo, StreamingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[SecurityCriticalAttribute]
public override void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

The object that holds the serialized object data for the exception that is being thrown.

context
Type: System.Runtime.Serialization.StreamingContext

Context information about the source or destination.

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
Available since 3.5
Return to top
Show: