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.

有关详细信息,请参阅 MSDN library IPersistStreamIPersistPropertyBag的和的文档。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)

适用于

另请参阅