AxHost.State 類別

定義

封裝 ActiveX 控制項的永續性 (Persistent) 狀態。

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()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

Dispose(Boolean)

封裝 ActiveX 控制項的永續性 (Persistent) 狀態。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

將序列化目標物件所需的資料填入 SerializationInfo

適用於

另請參閱