Share via


CimException Constructor (String, Exception)

 

Initializes a new instance of the CimException class.

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

Syntax

public CimException(
    string message,
    Exception innerException
)
public:
CimException(
    String^ message,
    Exception^ innerException
)
new : 
        message:string *
        innerException:Exception -> CimException
Public Sub New (
    message As String,
    innerException As Exception
)

Parameters

  • message
    Type: System.String

    A string that contains the cause of the exception.

  • innerException
    Type: System.Exception

    The exception that is the cause of the current exception, or a null reference (Nothing in Microsoft Visual Basic) if no inner exception is specified.

Remarks

There are no established scenarios for this constructor. It has been made publicly available to support extensibility and testability as recommended by the .NET design guidelines.

See Also

CimException Overload
CimException Class
Microsoft.Management.Infrastructure Namespace

Return to top