Share via


TaskException Constructor (String, Exception)

 

Initializes a new instance of the TaskException class with the specified error message and the specified exception that is the cause of the current exception.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

public TaskException(
    string message,
    Exception inner
)
public:
TaskException(
    String^ message,
    Exception^ inner
)
Public Sub New (
    message As String,
    inner As Exception
)

Parameters

  • message
    Type: System.String

    The error message that explains the reason for the exception.

  • inner
    Type: System.Exception

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

See Also

TaskException Overload
TaskException Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top