Bagikan melalui


WebRequest.ISerializable.GetObjectData Metode

Definisi

Perhatian

Serialization has been deprecated for WebRequest.

Ketika ditimpa di kelas turunan, mengisi instans dengan data yang SerializationInfo diperlukan untuk menserialisasikan WebRequest.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization has been deprecated for WebRequest.")]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Obsolete("Serialization has been deprecated for WebRequest.")>]
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext) Implements ISerializable.GetObjectData

Parameter

serializationInfo
SerializationInfo

A SerializationInfo, yang menyimpan data berseri untuk WebRequest.

streamingContext
StreamingContext

StreamingContext yang berisi tujuan aliran serial yang terkait dengan yang baruWebRequest.

Penerapan

Atribut

Pengecualian

Upaya dilakukan untuk menserialisasikan objek, ketika antarmuka tidak ditimpa di kelas turunan.

Berlaku untuk