SoapFaultSubCode 类

定义

表示使用 SOAP 1.2 版在客户端和 XML Web services 之间通信时所产生的 SOAP 错误的可选 Subcode 元素的内容。Represents the contents of the optional Subcode element of a SOAP fault when SOAP version 1.2 is used to communicate between a client and an XML Web service.

public ref class SoapFaultSubCode
[System.Serializable]
public class SoapFaultSubCode
type SoapFaultSubCode = class
Public Class SoapFaultSubCode
继承
SoapFaultSubCode
属性

注解

SOAP 1.2 错误包含一个Code元素以及一个可选Subcode元素。A SOAP 1.2 fault contains a Code element and among other things an optional Subcode element. 元素指定使用由 SOAP 协议指定的有限数量的预定义错误代码所发生的错误类型, Subcode而元素允许 soap 错误的发送方提供特定于应用程序的错误Code编写.The Code element specifies the type of error that occurred using a limited number of pre-defined error codes specified by the SOAP protocol, whereas the Subcode element allows the sender of the SOAP fault to provide an application specific error code. 此类表示Subcode元素的内容。This class represents the contents of the Subcode element.

XML Web services 通过引发SoapException来返回 soap 错误,并且 .net 客户端通过SoapException捕获来接收 soap 错误。XML Web services return a SOAP fault by throwing a SoapException, and .NET clients receive a SOAP fault by catching a SoapException. SoapException具有一个Code属性,该属性Code Subcode表示元素和表示元素的属性。SubCodeA SoapException has a Code property that represents the Code element and a SubCode property that represents the Subcode element.

构造函数

SoapFaultSubCode(XmlQualifiedName)

初始化 SoapFaultSubCode 类的新实例,并设置应用程序特定错误代码。Initializes a new instance of the SoapFaultSubCode class and sets the application specific error code.

SoapFaultSubCode(XmlQualifiedName, SoapFaultSubCode)

通过设置应用程序特定的错误代码和其他错误信息初始化 SoapFaultSubCode 类的新实例。Initializes a new instance of the SoapFaultSubCode class setting the application specific error code and additional error information.

属性

Code

获取 XML 限定名形式的应用程序特定错误代码。Gets the application specific error code in the form of an XML qualified name.

SubCode

获取 Subcode 子元素中所包含的其他错误信息。Gets additional error information contained within a child Subcode element.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于