AxHost.State Class

Definition

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
Inheritance
AxHost.State
Attributes
Implements

Remarks

The AxHost.State can be retrieved using the AxHost.OcxState property, or by reading the control's state from a data stream.

For more information, see the documentation for IPersistStream and IPersistPropertyBag in the MSDN library. 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.

Constructors

AxHost.State(SerializationInfo, StreamingContext)

Initializes a new instance of the AxHost.State class for deserializing a state.

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

Initializes a new instance of the AxHost.State class for serializing a state.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

Applies to

See also