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

定义

封装 ActiveX 控件的持久的状态。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.

有关详细信息,请参阅的文档IPersistStreamIPersistPropertyBagMSDN 库中。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 的浅表副本。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)

适用于

另请参阅