Partager via


WebserviceTaskException constructeur (String, Int32)

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

Espace de noms :  Microsoft.SqlServer.Dts.Tasks.WebServiceTask
Assembly :  Microsoft.SqlServer.WebServiceTask (dans Microsoft.SqlServer.WebServiceTask.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    errorMessage As String, _
    errorCode As Integer _
)
'Utilisation
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
)

Paramètres

Notes

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.