Bearbeiten

Freigeben über


ManagementException.ErrorCode Property

Definition

Gets the error code reported by WMI, which caused this exception.

public:
 property System::Management::ManagementStatus ErrorCode { System::Management::ManagementStatus get(); };
public System.Management.ManagementStatus ErrorCode { get; }
member this.ErrorCode : System.Management.ManagementStatus
Public ReadOnly Property ErrorCode As ManagementStatus

Property Value

One of the enumeration values that indicates the error code.

Remarks

Property Value

A ManagementStatus value representing the error code returned by the WMI operation.

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to