共用方式為


WebserviceTaskException Constructor (String, Int32)

Initializes a new instance of the WebserviceTaskException class, intializing the error message and error code.

命名空間: Microsoft.SqlServer.Dts.Tasks.WebServiceTask
組件: Microsoft.SqlServer.WebServiceTask (in microsoft.sqlserver.webservicetask.dll)

語法

'宣告
Public Sub New ( _
    errorMessage As String, _
    errorCode As Integer _
)
public WebserviceTaskException (
    string errorMessage,
    int errorCode
)
public:
WebserviceTaskException (
    String^ errorMessage, 
    int errorCode
)
public WebserviceTaskException (
    String errorMessage, 
    int errorCode
)
public function WebserviceTaskException (
    errorMessage : String, 
    errorCode : int
)

參數

  • errorMessage
    The error message to use in the exception.
  • errorCode
    The error code to use in the exception.

備註

For this constructor, the class is initialized with the message string set to the errorMessage string that is passed in, and its error code is set to the errorCode parameter that is passed in.

平台

開發平台

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

目標平台

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

請參閱

參考

WebserviceTaskException Class
WebserviceTaskException Members
Microsoft.SqlServer.Dts.Tasks.WebServiceTask Namespace