语言

DtsTaskException 构造函数

定义

初始化 DtsTaskException 类的新实例。

重载

名称 说明
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

包含错误条件的字符串。

注解

当你的自定义任务抛出异常且有错误条件的字符串描述时,会使用该构造器。

适用于