Share via


DtsTaskException Constructor (String)

This constructor is used when your custom task contains a string version of the exception.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String

Dim instance As New DtsTaskException(message)
public DtsTaskException(
    string message
)
public:
DtsTaskException(
    String^ message
)
new : 
        message:string -> DtsTaskException
public function DtsTaskException(
    message : String
)

Parameters

  • message
    Type: System.String
    A string that contains the error condition.

Remarks

This constructor is used when your custom task throws an exception and you have a string description of the error condition.