StreamingContext.State 屬性

定義

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

public:
 property System::Runtime::Serialization::StreamingContextStates State { System::Runtime::Serialization::StreamingContextStates get(); };
public System.Runtime.Serialization.StreamingContextStates State { get; }
member this.State : System.Runtime.Serialization.StreamingContextStates
Public ReadOnly Property State As StreamingContextStates

屬性值

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

備註

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

適用於