共用方式為


DtsTaskException Constructor (COMException)

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

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public Sub New ( _
    originalException As COMException _
)
public DtsTaskException (
    COMException originalException
)
public:
DtsTaskException (
    COMException^ originalException
)
public DtsTaskException (
    COMException originalException
)
public function DtsTaskException (
    originalException : COMException
)

參數

  • originalException
    The COM exception.

備註

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

DtsTaskException Class
DtsTaskException Members
Microsoft.SqlServer.Dts.Runtime Namespace