AxHost.State Class
Collapse the table of content
Expand the table of content

AxHost.State Class

Encapsulates the persisted state of an ActiveX control.

For a list of all members of this type, see AxHost.State Members.


[Visual Basic]
Public Class AxHost.State
   Implements ISerializable
public class AxHost.State : ISerializable
public __gc class AxHost.State : public ISerializable
class AxHost.State implements ISerializable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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.


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

AxHost.State Members | System.Windows.Forms Namespace | OcxState

© 2015 Microsoft