StreamingContext.State 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得傳輸資料的來源或目的地。
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。 在解序列化過程中,狀態表示解序列串流的來源。