ManagementPackException Constructor (ManagementPackExceptionCode, Exception)

Initializes a new ManagementPackException object with the exception code that identifies the exception and the inner exception that caused the exception.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.OperationsManager.Common (in microsoft.enterprisemanagement.operationsmanager.common.dll)

Usage

'Usage
Dim exceptioncode As ManagementPackExceptionCode
Dim innerException As Exception

Dim instance As New ManagementPackException(exceptioncode, innerException)

Syntax

'Declaration
Public Sub New ( _
    exceptioncode As ManagementPackExceptionCode, _
    innerException As Exception _
)
public ManagementPackException (
    ManagementPackExceptionCode exceptioncode,
    Exception innerException
)
public:
ManagementPackException (
    ManagementPackExceptionCode exceptioncode, 
    Exception^ innerException
)
public ManagementPackException (
    ManagementPackExceptionCode exceptioncode, 
    Exception innerException
)
public function ManagementPackException (
    exceptioncode : ManagementPackExceptionCode, 
    innerException : Exception
)

Parameters

  • exceptioncode
    The exception code that identifies the cause of the exception.
  • innerException
    The inner exception that describes the cause of the current exception.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also

Reference

ManagementPackException Class
ManagementPackException Members
Microsoft.EnterpriseManagement.Common Namespace

Send comments about this topic to Microsoft.