Bagikan melalui


WeakReference.GetObjectData(SerializationInfo, StreamingContext) Metode

Definisi

Perhatian

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Mengisi SerializationInfo objek dengan semua data yang diperlukan untuk menserialisasikan objek saat ini WeakReference .

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
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("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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.Security.SecurityCritical>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Objek yang menyimpan semua data yang diperlukan untuk menserialisasikan atau mendeserialisasi objek saat ini WeakReference .

context
StreamingContext

(Dicadangkan) Lokasi tempat data berseri disimpan dan diambil.

Penerapan

Atribut

Pengecualian

infoadalah null.

Keterangan

Metode ini menyimpan semua informasi info yang diperlukan untuk membuat serialisasi objek saat ini WeakReference .

Parameter context dicadangkan dan saat ini tidak digunakan dalam eksekusi metode ini.

Berlaku untuk

Lihat juga