Bagikan melalui


WebRequest.GetObjectData(SerializationInfo, StreamingContext) Metode

Definisi

Perhatian

Serialization has been deprecated for WebRequest.

Mengisi dengan data yang SerializationInfo diperlukan untuk membuat serialisasi objek target.

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

Parameter

serializationInfo
SerializationInfo

SerializationInfo untuk mengisi dengan data.

streamingContext
StreamingContext

StreamingContext yang menentukan tujuan untuk serialisasi ini.

Atribut

Keterangan

Objek apa pun yang disertakan dalam secara otomatis dilacak dan diserialisasikan SerializationInfo oleh pemformat.

Berlaku untuk