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

属性值

在序列化过程中为传输数据的目标。 在反序列化过程中为数据的源。

属性

注解

在序列化期间,当前属性指定传输数据的目标。 例如,从跨 AppDomain 远程处理序列化数据时, StreamingContextStatesCrossProcess。 在反序列化期间,状态指示反序列化流的源。

适用于