語言

DtsTaskException 建構函式

定義

初始化 DtsTaskException 類別的新執行個體。

多載

名稱 Description
DtsTaskException(COMException)

初始化類別的新實例 DtsTaskException ,並指定 COM 例外。

DtsTaskException(String)

初始化 DtsTaskException 類別的新執行個體。

DtsTaskException(COMException)

初始化類別的新實例 DtsTaskException ,並指定 COM 例外。

public:
 DtsTaskException(System::Runtime::InteropServices::COMException ^ originalException);
public DtsTaskException(System.Runtime.InteropServices.COMException originalException);
new Microsoft.SqlServer.Dts.Runtime.DtsTaskException : System.Runtime.InteropServices.COMException -> Microsoft.SqlServer.Dts.Runtime.DtsTaskException
Public Sub New (originalException As COMException)

參數

originalException
COMException

COM例外。

備註

如果你的自訂元件有導致 DtsTaskException 拋出的 COM 例外,請用這個建構子包裹該例外,該建構子透過 originalException 參數接收 COM 例外。

適用於

DtsTaskException(String)

初始化 DtsTaskException 類別的新執行個體。

public:
 DtsTaskException(System::String ^ message);
public DtsTaskException(string message);
new Microsoft.SqlServer.Dts.Runtime.DtsTaskException : string -> Microsoft.SqlServer.Dts.Runtime.DtsTaskException
Public Sub New (message As String)

參數

message
String

包含錯誤條件的字串。

備註

這個建構器用於你的自訂任務拋出例外,且你有錯誤條件的字串描述。

適用於