Compartir a través de


DtsTaskException Constructor (COMException)

This constructor is used when your custom task contains a COM exception.

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime
Ensamblado:  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Sintaxis

'Declaración
Public Sub New ( _
    originalException As COMException _
)
'Uso
Dim originalException As COMException

Dim instance As New DtsTaskException(originalException)
public DtsTaskException(
    COMException originalException
)
public:
DtsTaskException(
    COMException^ originalException
)
new : 
        originalException:COMException -> DtsTaskException
public function DtsTaskException(
    originalException : COMException
)

Parámetros

Comentarios

If your custom component has a COM exception that causes DtsTaskException to be thrown, wrap the exception with this constructor that takes the COM exception through the originalException parameter.