Bagikan melalui


ConfigurationException.GetObjectData Metode

Definisi

Perhatian

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

SerializationInfo Mengatur objek dengan nama file dan nomor baris tempat pengecualian konfigurasi ini terjadi.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public override 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 override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
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}")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Objek yang menyimpan informasi yang akan diserialisasikan.

context
StreamingContext

Informasi kontekstual tentang sumber atau tujuan.

Atribut

Keterangan

Metode GetObjectData ini mengatur SerializationInfo objek dengan nama file dan nomor baris tempat pengecualian ini ConfigurationException terjadi. Selama deserialisasi, ConfigurationException pengecualian direkonstitusi dari SerializationInfo objek yang ditransmisikan melalui aliran.

Berlaku untuk