StreamingContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 StreamingContext 类的新实例。
重载
StreamingContext(StreamingContextStates) |
已过时.
使用给定的上下文状态初始化 StreamingContext 类的新实例。 |
StreamingContext(StreamingContextStates, Object) |
已过时.
使用给定的上下文状态以及一些附加信息来初始化 StreamingContext 类的新实例。 |
StreamingContext(StreamingContextStates)
- Source:
- StreamingContext.cs
- Source:
- StreamingContext.cs
- Source:
- StreamingContext.cs
注意
Formatter-based serialization is obsolete and should not be used.
使用给定的上下文状态初始化 StreamingContext 类的新实例。
public:
StreamingContext(System::Runtime::Serialization::StreamingContextStates state);
public StreamingContext (System.Runtime.Serialization.StreamingContextStates state);
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public StreamingContext (System.Runtime.Serialization.StreamingContextStates state);
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates -> System.Runtime.Serialization.StreamingContext
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates -> System.Runtime.Serialization.StreamingContext
Public Sub New (state As StreamingContextStates)
参数
- state
- StreamingContextStates
指定此 StreamingContext 的源或目标上下文的 StreamingContextStates 值的按位组合。
- 属性
另请参阅
适用于
StreamingContext(StreamingContextStates, Object)
- Source:
- StreamingContext.cs
- Source:
- StreamingContext.cs
- Source:
- StreamingContext.cs
注意
Formatter-based serialization is obsolete and should not be used.
使用给定的上下文状态以及一些附加信息来初始化 StreamingContext 类的新实例。
public:
StreamingContext(System::Runtime::Serialization::StreamingContextStates state, System::Object ^ additional);
public StreamingContext (System.Runtime.Serialization.StreamingContextStates state, object? additional);
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public StreamingContext (System.Runtime.Serialization.StreamingContextStates state, object? additional);
public StreamingContext (System.Runtime.Serialization.StreamingContextStates state, object additional);
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates * obj -> System.Runtime.Serialization.StreamingContext
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates * obj -> System.Runtime.Serialization.StreamingContext
Public Sub New (state As StreamingContextStates, additional As Object)
参数
- state
- StreamingContextStates
指定此 StreamingContext 的源或目标上下文的 StreamingContextStates 值的按位组合。
- additional
- Object
任何与 StreamingContext 关联的附加信息。 此信息对所有实现 ISerializable 或任何序列化代理项的对象均可用。 大多数用户无需设置此参数。
- 属性