StreamingContext.State Tulajdonság

Definíció

Figyelemfelhívás

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

Lekéri a továbbított adatok forrását vagy célját.

public:
 property System::Runtime::Serialization::StreamingContextStates State { System::Runtime::Serialization::StreamingContextStates 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; }
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}")>]
member this.State : System.Runtime.Serialization.StreamingContextStates
member this.State : System.Runtime.Serialization.StreamingContextStates
Public ReadOnly Property State As StreamingContextStates

Tulajdonság értéke

A szerializálás során a továbbított adatok célhelye. A deszerializálás során az adatok forrása.

Attribútumok

Megjegyzések

A szerializálás során az aktuális tulajdonság határozza meg a továbbított adatok célját. Ha például az AppDomain-alapú újramotálásból származó adatokat szerializálja, a StreamingContextStates következő: CrossProcess. A deszerializálás során az állapot a deszerializált stream forrását jelzi.

A következőre érvényes: