StreamingContext.State 屬性

定義

警告

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

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

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

屬性值

在序列化期間,已傳輸資料的目的端。 在還原序列化 (Deserialization) 期間,資料的來源。

屬性

備註

在序列化期間,目前的 屬性會指定所傳輸資料的目的地。 例如,從跨 AppDomain 遠端序列化資料時,是 StreamingContextStatesCrossProcess 。 還原序列化期間,狀態會指出還原序列化資料流程的來源。

適用於