Bagikan melalui


StreamingContext.State Properti

Definisi

Perhatian

Formatter-based serialization is obsolete and should not be used.

Mendapatkan sumber atau tujuan data yang dikirimkan.

public:
 property System::Runtime::Serialization::StreamingContextStates State { System::Runtime::Serialization::StreamingContextStates get(); };
public System.Runtime.Serialization.StreamingContextStates State { get; }
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public System.Runtime.Serialization.StreamingContextStates State { get; }
member this.State : System.Runtime.Serialization.StreamingContextStates
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.State : System.Runtime.Serialization.StreamingContextStates
Public ReadOnly Property State As StreamingContextStates

Nilai Properti

Selama serialisasi, tujuan data yang dikirimkan. Selama deserialisasi, sumber data.

Atribut

Keterangan

Selama serialisasi, properti saat ini menentukan tujuan data yang dikirimkan. Misalnya, saat menserialisasikan data dari remoting lintas AppDomain, StreamingContextStates adalah CrossProcess. Selama deserialisasi, status menunjukkan sumber aliran yang dideserialisasi.

Berlaku untuk