SoapException.SubCode 属性
定义
获取 SOAP 错误的 subcode XML 元素中包含的可选错误信息。Gets the optional error information contained in the subcode XML element of a SOAP fault.
public:
property System::Web::Services::Protocols::SoapFaultSubCode ^ SubCode { System::Web::Services::Protocols::SoapFaultSubCode ^ get(); };
[System.Runtime.InteropServices.ComVisible(false)]
public System.Web.Services.Protocols.SoapFaultSubCode SubCode { get; }
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.SubCode : System.Web.Services.Protocols.SoapFaultSubCode
Public ReadOnly Property SubCode As SoapFaultSubCode
属性值
表示 SOAP 错误的 subcode XML 元素内容的 SoapFaultSubCode。A SoapFaultSubCode that represents the contents of the subcode XML element of a SOAP fault.
- 属性
注解
SubCode当使用 SOAP 协议版本1.1 与 XML Web service 进行通信时,将忽略属性。The SubCode property is ignored when the SOAP protocol version 1.1 is used to communicate with an XML Web service. Code表示元素内容的属性 code 指定使用由 SOAP 协议指定的数量有限的预定义错误代码所发生的错误类型,而可选 subcode 元素允许应用程序提供特定于应用程序的用户定义错误代码。The Code property that represents the contents of 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 optional subcode element allows an application to provide user-defined error codes specific to the application. ASP.NET 定义由和字段表示的两个这类代码 RpcProcedureNotPresentFaultCode RpcBadArgumentsFaultCode 。ASP.NET defines two such codes that are represented by the RpcProcedureNotPresentFaultCode and RpcBadArgumentsFaultCode fields.