共用方式為


DtsTaskException 建構函式 (COMException)

Initializes a new instance of the DtsTaskException class with specified COM exception.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Sub New ( _
    originalException As COMException _
)
'用途
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
)

參數

備註

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.

請參閱

參考

DtsTaskException 類別

DtsTaskException 多載

Microsoft.SqlServer.Dts.Runtime 命名空間