WebserviceTaskException 构造函数 (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(在 Microsoft.SqlServer.WebServiceTask.dll 中)

语法

声明
Public Sub New ( _
    errorMessage As String, _
    errorCode As Integer _
)
用法
Dim errorMessage As String 
Dim errorCode As Integer 

Dim instance As New WebserviceTaskException(errorMessage, _
    errorCode)
public WebserviceTaskException(
    string errorMessage,
    int errorCode
)
public:
WebserviceTaskException(
    String^ errorMessage, 
    int errorCode
)
new : 
        errorMessage:string * 
        errorCode:int -> WebserviceTaskException
public function WebserviceTaskException(
    errorMessage : String, 
    errorCode : int
)

参数

  • errorMessage
    类型:System.String
    The error message to use in the exception.
  • errorCode
    类型:System.Int32
    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.

请参阅

参考

WebserviceTaskException 类

WebserviceTaskException 重载

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