StreamingContext.State 屬性

定義

警告

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

取得傳輸資料的來源或目的地。

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

屬性值

序列化過程中,傳輸資料的目的地。 在反序列化過程中,資料的來源。

屬性

備註

在序列化過程中,當前屬性指定傳輸資料的目的地。 例如,當跨 AppDomain 遠端存取的資料序列化時,是 StreamingContextStatesCrossProcess。 在解序列化過程中,狀態表示解序列串流的來源。

適用於