Edit

ManagementException Class

Definition

Represents management exceptions.

public ref class ManagementException : SystemException
public class ManagementException : SystemException
type ManagementException = class
    inherit SystemException
Public Class ManagementException
Inherits SystemException
Inheritance
ManagementException

Constructors

Name Description
ManagementException()

Initializes a new instance of the ManagementException class.

ManagementException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ManagementException class that is serializable.

ManagementException(String, Exception)

Initializes an empty new instance of the ManagementException class. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

ManagementException(String)

Initializes a new instance of the ManagementException class with a specified error message.

Properties

Name Description
ErrorCode

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

ErrorInformation

Gets the extended error object provided by WMI.

Methods

Name Description
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

Populates the SerializationInfo with the data needed to serialize the ManagementException.

Applies to