AxHost.State 类

定义

封装 ActiveX 控件的持久状态。

C#
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))]
[System.Serializable]
public class AxHost.State : System.Runtime.Serialization.ISerializable
C#
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))]
[System.Serializable]
public class AxHost.State : IDisposable, System.Runtime.Serialization.ISerializable
继承
AxHost.State
属性
实现

注解

AxHost.State可以使用 属性或通过从数据流中读取控件的状态来检索 AxHost.OcxState

有关详细信息,请参阅 IPersistStream 接口IPersistPropertyBag 接口

构造函数

AxHost.State(SerializationInfo, StreamingContext)

初始化 AxHost.State 类的新实例以反序列化状态。

AxHost.State(Stream, Int32, Boolean, String)

初始化 AxHost.State 类的新实例以序列化状态。

方法

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

Dispose(Boolean)

封装 ActiveX 控件的持久状态。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用将目标对象序列化所需的数据填充 SerializationInfo

适用于

产品 版本
.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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

另请参阅