SoapHeaderException 构造函数

定义

初始化 SoapHeaderException 类的新实例。

重载

名称 说明
SoapHeaderException()

初始化 SoapHeaderException 类的新实例。

SoapHeaderException(SerializationInfo, StreamingContext)

使用用于控制序列化的参数初始化类的新实例 SoapHeaderException

SoapHeaderException(String, XmlQualifiedName)

初始化 SoapHeaderException 类的新实例。

SoapHeaderException(String, XmlQualifiedName, Exception)

初始化 SoapHeaderException 类的新实例。

SoapHeaderException(String, XmlQualifiedName, String)

初始化 SoapHeaderException 类的新实例。

SoapHeaderException(String, XmlQualifiedName, String, Exception)

初始化 SoapHeaderException 类的新实例。

SoapHeaderException(String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception)

使用关联的数据初始化类的新实例 SoapHeaderException

SoapHeaderException(String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception)

使用关联的数据初始化类的新实例 SoapHeaderException

SoapHeaderException()

初始化 SoapHeaderException 类的新实例。

public:
 SoapHeaderException();
public SoapHeaderException();
Public Sub New ()

适用于

SoapHeaderException(SerializationInfo, StreamingContext)

使用用于控制序列化的参数初始化类的新实例 SoapHeaderException

protected:
 SoapHeaderException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SoapHeaderException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Web.Services.Protocols.SoapHeaderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Web.Services.Protocols.SoapHeaderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含序列化和反序列化期间使用的值的 A SerializationInfo

context
StreamingContext

包含有关序列化流的源和目标的数据的 A SoapHeaderException(SerializationInfo, StreamingContext)

适用于

SoapHeaderException(String, XmlQualifiedName)

初始化 SoapHeaderException 类的新实例。

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

适用于

SoapHeaderException(String, XmlQualifiedName, Exception)

初始化 SoapHeaderException 类的新实例。

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, Exception ^ innerException);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code, Exception innerException);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName * Exception -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName, innerException As Exception)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

innerException
Exception

对异常的根本原因的引用。 此参数设置 InnerException 属性。

适用于

SoapHeaderException(String, XmlQualifiedName, String)

初始化 SoapHeaderException 类的新实例。

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code, string actor);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName * string -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName, actor As String)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

actor
String

导致异常的代码片段。 通常,这是 XML Web 服务方法的 URL。 此参数设置 Actor 属性。

适用于

SoapHeaderException(String, XmlQualifiedName, String, Exception)

初始化 SoapHeaderException 类的新实例。

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, Exception ^ innerException);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code, string actor, Exception innerException);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName * string * Exception -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, innerException As Exception)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

actor
String

导致异常的代码片段。 通常,这是 XML Web 服务方法的 URL。 此参数设置 Actor 属性。

innerException
Exception

对异常的根本原因的引用。 此参数设置 InnerException 属性。

适用于

SoapHeaderException(String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception)

使用关联的数据初始化类的新实例 SoapHeaderException

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::String ^ role, System::Web::Services::Protocols::SoapFaultSubCode ^ subCode, Exception ^ innerException);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code, string actor, string role, System.Web.Services.Protocols.SoapFaultSubCode subCode, Exception innerException);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName * string * string * System.Web.Services.Protocols.SoapFaultSubCode * Exception -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, role As String, subCode As SoapFaultSubCode, innerException As Exception)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

actor
String

导致异常的代码片段。 通常,这是 XML Web 服务方法的 URL。 此参数设置 Actor 属性。

role
String

一个 URI,表示 XML Web 服务在处理 SOAP 消息时的角色。 此参数设置 Role 属性。

subCode
SoapFaultSubCode

包含 SOAP 错误的元素的内容SoapFaultSubCode的 A<subcode>

innerException
Exception

对异常根本原因的引用。 此参数设置 InnerException 属性。

适用于

SoapHeaderException(String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception)

使用关联的数据初始化类的新实例 SoapHeaderException

public:
 SoapHeaderException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::String ^ role, System::String ^ lang, System::Web::Services::Protocols::SoapFaultSubCode ^ subCode, Exception ^ innerException);
public SoapHeaderException(string message, System.Xml.XmlQualifiedName code, string actor, string role, string lang, System.Web.Services.Protocols.SoapFaultSubCode subCode, Exception innerException);
new System.Web.Services.Protocols.SoapHeaderException : string * System.Xml.XmlQualifiedName * string * string * string * System.Web.Services.Protocols.SoapFaultSubCode * Exception -> System.Web.Services.Protocols.SoapHeaderException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, role As String, lang As String, subCode As SoapFaultSubCode, innerException As Exception)

参数

message
String

一条消息,用于标识发生异常的原因。 此参数设置 Message 属性。

code
XmlQualifiedName

发生的错误类型。 此参数设置 Code 属性。

actor
String

导致异常的代码片段。 通常,这是 XML Web 服务方法的 URL。 此参数设置 Actor 属性。

role
String

一个 URI,表示 XML Web 服务在处理 SOAP 消息时的角色。 此参数设置 Role 属性。

lang
String

标识与异常关联的人类语言的字符串。 此参数设置 Lang 属性。

subCode
SoapFaultSubCode

包含 SOAP 错误的元素的内容SoapFaultSubCode的 Asubcode

innerException
Exception

对异常的根本原因的引用。 此参数设置 InnerException 属性。

适用于