共用方式為


WebserviceTaskException 建構函式 (String)

Initializes a new instance of the WebserviceTaskException class, initializing the error message string.

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

語法

'宣告
Public Sub New ( _
    errorMessage As String _
)
'用途
Dim errorMessage As String 

Dim instance As New WebserviceTaskException(errorMessage)
public WebserviceTaskException(
    string errorMessage
)
public:
WebserviceTaskException(
    String^ errorMessage
)
new : 
        errorMessage:string -> WebserviceTaskException
public function WebserviceTaskException(
    errorMessage : String
)

參數

  • errorMessage
    型別:System.String
    The error message string to be used in the exception.

備註

For this constructor, the message string is set to the errorMessage parameter, and the error code set to DEFAULT_CODE.

請參閱

參考

WebserviceTaskException 類別

WebserviceTaskException 多載

Microsoft.SqlServer.Dts.Tasks.WebServiceTask 命名空間