Redigeeri

Jagamisviis:


AxHost.State Class

Definition

Encapsulates the persisted state of an ActiveX control.

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
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 IPersistStream interface and IPersistPropertyBag interface.

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

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)
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