AxHost.InvalidActiveXStateException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception that is thrown when the ActiveX control is referenced while in an invalid state.
public: ref class AxHost::InvalidActiveXStateException : Exception
public class AxHost.InvalidActiveXStateException : Exception
type AxHost.InvalidActiveXStateException = class
inherit Exception
Public Class AxHost.InvalidActiveXStateException
Inherits Exception
- Inheritance
Remarks
The public properties and methods of an ActiveX control can only be referenced after the ActiveX control has been instantiated and initialized completely; otherwise the AxHost.InvalidActiveXStateException exception is thrown. The AxHost.InvalidActiveXStateException exception class contains the name of the member that made the reference and the member type. The member type is one of the AxHost.ActiveXInvokeKind enumerated values.
Constructors
| Name | Description |
|---|---|
| AxHost.InvalidActiveXStateException() |
Initializes a new instance of the AxHost.InvalidActiveXStateException class without specifying information about the member that referenced the ActiveX control. |
| AxHost.InvalidActiveXStateException(String, AxHost+ActiveXInvokeKind) |
Initializes a new instance of the AxHost.InvalidActiveXStateException class and indicates the name of the member that referenced the ActiveX control and the kind of reference it made. |
Methods
| Name | Description |
|---|---|
| ToString() |
Creates and returns a string representation of the current exception. |