StreamingContext 结构
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
说明给定序列化流的源和目标,并提供另一个调用方定义的上下文。
public value class StreamingContext
C#
public struct StreamingContext
C#
public readonly struct StreamingContext
C#
[System.Serializable]
public struct StreamingContext
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct StreamingContext
type StreamingContext = struct
[<System.Serializable>]
type StreamingContext = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StreamingContext = struct
Public Structure StreamingContext
- 继承
- 属性
指示格式化程序使用的位的源或目标。 具有代理项 或 实现 ISerializable 的类可以根据存储在流式处理上下文中的信息序列化或忽略字段和值。 例如,如果 State 属性设置为 System.Runtime.Serialization.StreamingContextStates.CrossProcess
,则窗口句柄仍然有效。
Streaming |
已过时.
使用给定的上下文状态初始化 StreamingContext 类的新实例。 |
Streaming |
已过时.
使用给定的上下文状态以及一些附加信息来初始化 StreamingContext 类的新实例。 |
Equals(Object) |
确定两个 StreamingContext 实例是否包含相同值。 |
Get |
返回此对象的哈希代码。 |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |