共用方式為


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.OcxState取得,AxHost.State或從資料串流讀取控制項狀態。

欲了解更多資訊,請參閱 IPersistStream 介面IPersistPropertyBag 介面

建構函式

名稱 Description
AxHost.State(SerializationInfo, StreamingContext)

初始化該類別的新實例 AxHost.State 以反序列化狀態。

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

初始化該類別的新實例 AxHost.State 以序列化狀態。

方法

名稱 Description
Dispose()

執行與釋放、釋放或重置未管理資源相關的應用程式定義任務。

Dispose(Boolean)

封裝 ActiveX 控制件的保存狀態。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

明確介面實作

名稱 Description
ISerializable.GetObjectData(SerializationInfo, StreamingContext)

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

適用於

另請參閱