AxHost.InvalidActiveXStateException Constructors

Definition

Initializes a new instance of the AxHost.InvalidActiveXStateException class.

Overloads

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.

AxHost.InvalidActiveXStateException()

Source:
AxHost.InvalidActiveXStateException.cs
Source:
AxHost.InvalidActiveXStateException.cs
Source:
AxHost.InvalidActiveXStateException.cs

Initializes a new instance of the AxHost.InvalidActiveXStateException class without specifying information about the member that referenced the ActiveX control.

C#
public InvalidActiveXStateException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AxHost.InvalidActiveXStateException(String, AxHost+ActiveXInvokeKind)

Source:
AxHost.InvalidActiveXStateException.cs
Source:
AxHost.InvalidActiveXStateException.cs
Source:
AxHost.InvalidActiveXStateException.cs

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.

C#
public InvalidActiveXStateException(string name, System.Windows.Forms.AxHost.ActiveXInvokeKind kind);
C#
public InvalidActiveXStateException(string? name, System.Windows.Forms.AxHost.ActiveXInvokeKind kind);

Parameters

name
String

The name of the member that referenced the ActiveX control while it was in an invalid state.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10