WmiProviderInstallationException Constructors

Definition

Initializes a new instance of the class. This is the parameterless constructor.

Overloads

WmiProviderInstallationException()

Initializes a new instance of the class. This is the parameterless constructor.

WmiProviderInstallationException(String)

Initializes a new instance of the class with a message that describes the exception.

WmiProviderInstallationException(SerializationInfo, StreamingContext)

Initializes a new instance of the class with serialization information.

WmiProviderInstallationException(String, Exception)

Initializes a new class with the specified string and exception.

WmiProviderInstallationException()

Initializes a new instance of the class. This is the parameterless constructor.

C#
public WmiProviderInstallationException();

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 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

WmiProviderInstallationException(String)

Initializes a new instance of the class with a message that describes the exception.

C#
public WmiProviderInstallationException(string message);

Parameters

message
String

Message that describes the exception.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 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

WmiProviderInstallationException(SerializationInfo, StreamingContext)

Initializes a new instance of the class with serialization information.

C#
protected WmiProviderInstallationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The data that is required to serialize or deserialize an object.

context
StreamingContext

Description of the source and destination of the specified serialized stream.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 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

WmiProviderInstallationException(String, Exception)

Initializes a new class with the specified string and exception.

C#
public WmiProviderInstallationException(string message, Exception innerException);

Parameters

message
String

Message that describes the exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 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