System.Net.WebResponse.GetObjectData Method

Populates a System.Runtime.Serialization.SerializationInfo with the data that is needed to serialize the target object.

Syntax

[System.MonoTODO]
protected virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)

Parameters

serializationInfo
The System.Runtime.Serialization.SerializationInfo to populate with data.
streamingContext
A System.Runtime.Serialization.StreamingContext that specifies the destination for this serialization.

Remarks

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