次の方法で共有


CimException Class

 

Represents an exception that has occurred during a CIM operation.

Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Management.Infrastructure.CimException

Syntax

[SerializableAttribute]
public class CimException : Exception, IDisposable
[SerializableAttribute]
public ref class CimException : Exception, IDisposable
[<SerializableAttribute>]
type CimException = 
    class
        inherit Exception
        interface IDisposable
    end
<SerializableAttribute>
Public Class CimException
    Inherits Exception
    Implements IDisposable

Constructors

Name Description
System_CAPS_pubmethod CimException()

Initializes a new instance of the CimException class.

System_CAPS_pubmethod CimException(CimInstance)

Initializes a new instance of the CimException class.

System_CAPS_protmethod CimException(SerializationInfo, StreamingContext)

Initializes a new instance of the CimException class.

System_CAPS_pubmethod CimException(String)

Initializes a new instance of the CimException class.

System_CAPS_pubmethod CimException(String, Exception)

Initializes a new instance of the CimException class.

Properties

Name Description
System_CAPS_pubproperty Data

(Inherited from Exception.)

System_CAPS_pubproperty ErrorData

Gets the error data of the exception. This is typically an instance of a standard CIM_Error class or derived class.

System_CAPS_pubproperty ErrorSource

Gets the identifying information of the instance that generated the error.

System_CAPS_pubproperty ErrorType

Gets the primary classification of the error.

System_CAPS_pubproperty HelpLink

(Inherited from Exception.)

System_CAPS_pubproperty HResult

(Inherited from Exception.)

System_CAPS_pubproperty InnerException

(Inherited from Exception.)

System_CAPS_pubproperty Message

(Inherited from Exception.)

System_CAPS_pubproperty MessageId

Gets the MessageId property that represents an opaque string that uniquely identifies the format of the message.

System_CAPS_pubproperty NativeErrorCode

Gets the native error code returned from the MI client API.

System_CAPS_pubproperty Source

(Inherited from Exception.)

System_CAPS_pubproperty StackTrace

(Inherited from Exception.)

System_CAPS_pubproperty StatusCode

Gets the CIM status code that characterizes this instance. This property defines the status codes that can be returned by a conforming CIM server or client.

System_CAPS_pubproperty TargetSite

(Inherited from Exception.)

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases resources that are associated with this object.

System_CAPS_protmethod Dispose(Boolean)

Releases resources that are associated with this object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Sets the instance of the SerializationInfo class with information about the exception.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethod GetType()

(Inherited from Exception.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Exception.)

Events

Name Description
System_CAPS_protevent SerializeObjectState

(Inherited from Exception.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Management.Infrastructure Namespace

Return to top