通过


AxHost.State 类

定义

封装 ActiveX 控件的持久状态。

public: ref class AxHost::State : System::Runtime::Serialization::ISerializable
public: ref class AxHost::State : IDisposable, System::Runtime::Serialization::ISerializable
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))]
[System.Serializable]
public class AxHost.State : System.Runtime.Serialization.ISerializable
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))]
[System.Serializable]
public class AxHost.State : IDisposable, System.Runtime.Serialization.ISerializable
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))>]
[<System.Serializable>]
type AxHost.State = class
    interface ISerializable
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))>]
[<System.Serializable>]
type AxHost.State = class
    interface ISerializable
    interface IDisposable
Public Class AxHost.State
Implements ISerializable
Public Class AxHost.State
Implements IDisposable, 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

适用于

另请参阅