AxHost.State AxHost.State AxHost.State AxHost.State Class

定義

封裝 ActiveX 控制項的永續性 (Persistent) 狀態。Encapsulates the persisted state of an ActiveX control.

public: ref class AxHost::State : System::Runtime::Serialization::ISerializable
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.TypeConverter))]
[System.Serializable]
public class AxHost.State : System.Runtime.Serialization.ISerializable
type AxHost.State = class
    interface ISerializable
Public Class AxHost.State
Implements ISerializable
繼承
AxHost.StateAxHost.StateAxHost.StateAxHost.State
屬性
實作

備註

AxHost.State 可以AxHost.OcxState使用屬性來抓取, 或從資料流程讀取控制項的狀態。The AxHost.State can be retrieved using the AxHost.OcxState property, or by reading the control's state from a data stream.

如需詳細資訊, 請參閱 MSDN IPersistStream library IPersistPropertyBag中的和的檔。For more information, see the documentation for IPersistStream and IPersistPropertyBag in the MSDN library. IPersistStream可以在 com sdk 檔的介面參考一節中找到, IPersistPropertyBag也可以在 com sdk 檔的 com 基礎介面參考一節中找到。IPersistStream can be found in the interface reference section of the COM SDK documentation, and IPersistPropertyBag can be found in the COM Fundamentals interface reference section of the COM SDK documentation.

建構函式

AxHost.State(SerializationInfo, StreamingContext) AxHost.State(SerializationInfo, StreamingContext) AxHost.State(SerializationInfo, StreamingContext) AxHost.State(SerializationInfo, StreamingContext)

初始化 AxHost.State 類別的新執行個體,以將狀態還原序列化。Initializes a new instance of the AxHost.State class for deserializing a state.

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

初始化 AxHost.State 類別的新執行個體,以序列化狀態。Initializes a new instance of the AxHost.State class for serializing a state.

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

將序列化目標物件所需的資料填入 SerializationInfoPopulates a SerializationInfo with the data needed to serialize the target object.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱