System.Net.CookieException.GetObjectData Method

Populates a System.Runtime.Serialization.SerializationInfo instance with the data needed to serialize the System.Net.CookieException.

Syntax

public override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)

Parameters

serializationInfo
The object that holds the serialized object data. The System.Runtime.Serialization.SerializationInfo to populate with data.
streamingContext
The contextual information about the source or destination. A System.Runtime.Serialization.StreamingContext that specifies the destination for this serialization.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization. Any objects included in the System.Runtime.Serialization.SerializationInfo are automatically tracked and serialized by the formatter.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0