WebserviceTaskException Class

Definition

包含 WebServiceTask 使用的异常的定义。Contains the definition for exceptions used by the WebServiceTask.

public ref class WebserviceTaskException : Exception
[System.Serializable]
public class WebserviceTaskException : Exception
type WebserviceTaskException = class
    inherit Exception
Public Class WebserviceTaskException
Inherits Exception
Inheritance
WebserviceTaskException
Attributes

Constructors

WebserviceTaskException(SerializationInfo, StreamingContext)

初始化类的新实例 WebserviceTaskException ,同时初始化 SerializationInfo 和 StreamingContext。Initializes a new instance of the WebserviceTaskException class, initializing the SerializationInfo and StreamingContext.

WebserviceTaskException(String)

初始化 WebserviceTaskException 类的新实例,并且初始化错误消息字符串。Initializes a new instance of the WebserviceTaskException class, initializing the error message string.

WebserviceTaskException(String, Int32)

初始化 WebserviceTaskException 类的新实例,并且初始化错误消息和错误代码。Initializes a new instance of the WebserviceTaskException class, intializing the error message and error code.

Fields

DEFAULT_CODE

指定错误代码的默认值。Specifies the default value of the error code.

NOTSUPPORTED_CODE

指定该任务遇到不支持的情况时使用的错误代码。Specifies the error code used when the task encounters something that is not supported.

Properties

ErrorCode

获取错误代码。Gets an error code.

Methods

GetObjectData(SerializationInfo, StreamingContext)

使用有关异常的信息设置 SerializationInfo。Sets the SerializationInfo with information about the exception.

Applies to