语言

StreamingContext 结构

定义

描述给定序列化流的源和目标,并提供其他调用方定义的上下文。

public value class StreamingContext
public struct StreamingContext
public readonly struct StreamingContext
[System.Serializable]
public struct StreamingContext
[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
继承
StreamingContext
属性

注解

指示格式化程序使用的位的源或目标。 具有代理项或实现 ISerializable 的类可以根据流式处理上下文中存储的信息序列化或忽略字段和值。 例如,如果 属性设置为 ,窗口句柄仍然有效。

构造函数

名称 说明
StreamingContext(StreamingContextStates, Object)
已过时.

使用给定的上下文状态和一些附加信息初始化类的新实例 StreamingContext 。

StreamingContext(StreamingContextStates)
已过时.

使用给定上下文状态初始化类的新实例 StreamingContext 。

属性

名称 说明
Context

获取指定为附加上下文的一部分的上下文。

State
已过时.

获取传输数据的源或目标。

方法

名称 说明
Equals(Object)

确定两 StreamingContext 个实例是否包含相同的值。

GetHashCode()

返回此对象的哈希代码。

适用于

另请参阅