SoapException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SoapException 类的新实例。
重载
SoapException()
SoapException(SerializationInfo, StreamingContext)
使用序列化的数据初始化 SoapException 类的新实例。
protected:
SoapException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SoapException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Web.Services.Protocols.SoapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Web.Services.Protocols.SoapException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
保存所引发异常的序列化对象数据的 SerializationInfo。
- context
- StreamingContext
包含有关源或目标的上下文信息的 StreamingContext。
适用于
SoapException(String, XmlQualifiedName)
使用指定的异常消息和异常代码初始化类的新实例 SoapException 。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code);
public SoapException(string message, System.Xml.XmlQualifiedName code);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
另请参阅
适用于
SoapException(String, XmlQualifiedName, Exception)
使用指定的异常消息、异常代码和对异常的根本原因的引用初始化类的新实例 SoapException 。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, Exception ^ innerException);
public SoapException(string message, System.Xml.XmlQualifiedName code, Exception innerException);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * Exception -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, innerException As Exception)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- innerException
- Exception
异常是异常的根本原因。 此参数设置 InnerException 属性。
另请参阅
适用于
SoapException(String, XmlQualifiedName, String)
使用指定的异常消息、异常代码和 URI 初始化类的新实例 SoapException ,以标识导致异常的代码段。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
另请参阅
适用于
SoapException(String, XmlQualifiedName, SoapFaultSubCode)
使用指定的异常消息、异常代码和子代码初始化类的新实例 SoapException 。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::Web::Services::Protocols::SoapFaultSubCode ^ subCode);
public SoapException(string message, System.Xml.XmlQualifiedName code, System.Web.Services.Protocols.SoapFaultSubCode subCode);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * System.Web.Services.Protocols.SoapFaultSubCode -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, subCode As SoapFaultSubCode)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- subCode
- SoapFaultSubCode
SOAP 错误的可选子代码。 此参数设置 SubCode 属性。
另请参阅
适用于
SoapException(String, XmlQualifiedName, String, Exception)
使用指定的异常消息、异常代码、URI 初始化类的新实例 SoapException ,该 URI 标识导致异常的代码,并引用异常的根本原因。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, Exception ^ innerException);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor, Exception innerException);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string * Exception -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, innerException As Exception)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- innerException
- Exception
异常是异常的根本原因。 此参数设置 InnerException 属性。
另请参阅
适用于
SoapException(String, XmlQualifiedName, String, XmlNode)
使用指定的异常消息、异常代码、URI 初始化类的新实例 SoapException ,该 URI 标识导致异常的代码段,以及应用程序特定的异常信息。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::Xml::XmlNode ^ detail);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor, System.Xml.XmlNode detail);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string * System.Xml.XmlNode -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, detail As XmlNode)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
适用于
SoapException(String, XmlQualifiedName, String, XmlNode, Exception)
使用指定的异常消息、异常代码、URI 初始化类的新实例 SoapException ,该 URI 标识导致异常的代码片段、特定于应用程序的异常信息以及对异常的根本原因的引用。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::Xml::XmlNode ^ detail, Exception ^ innerException);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor, System.Xml.XmlNode detail, Exception innerException);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string * System.Xml.XmlNode * Exception -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, detail As XmlNode, innerException As Exception)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- innerException
- Exception
异常是异常的根本原因。 此参数设置 InnerException 属性。
适用于
SoapException(String, XmlQualifiedName, String, String, XmlNode, SoapFaultSubCode, Exception)
使用指定的异常消息、异常代码、URI 初始化类的新实例 SoapException ,该 URI 标识导致异常的代码片段、特定于应用程序的异常信息以及对异常的根本原因的引用。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::String ^ role, System::Xml::XmlNode ^ detail, System::Web::Services::Protocols::SoapFaultSubCode ^ subCode, Exception ^ innerException);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor, string role, System.Xml.XmlNode detail, System.Web.Services.Protocols.SoapFaultSubCode subCode, Exception innerException);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string * string * System.Xml.XmlNode * System.Web.Services.Protocols.SoapFaultSubCode * Exception -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, role As String, detail As XmlNode, subCode As SoapFaultSubCode, innerException As Exception)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- subCode
- SoapFaultSubCode
SOAP 错误的可选子代码。 此参数设置 SubCode 属性。
- innerException
- Exception
异常是异常的根本原因。 此参数设置 InnerException 属性。
适用于
SoapException(String, XmlQualifiedName, String, String, String, XmlNode, SoapFaultSubCode, Exception)
使用指定的异常消息、异常代码、URI 初始化类的新实例,该实例 SoapException 标识导致异常的代码片段、表示 XML Web 服务的函数处理 SOAP 消息的 URI、与异常关联的人类语言、特定于应用程序的异常信息、SOAP 错误的子代码以及对异常根本原因的引用。
public:
SoapException(System::String ^ message, System::Xml::XmlQualifiedName ^ code, System::String ^ actor, System::String ^ role, System::String ^ lang, System::Xml::XmlNode ^ detail, System::Web::Services::Protocols::SoapFaultSubCode ^ subCode, Exception ^ innerException);
public SoapException(string message, System.Xml.XmlQualifiedName code, string actor, string role, string lang, System.Xml.XmlNode detail, System.Web.Services.Protocols.SoapFaultSubCode subCode, Exception innerException);
new System.Web.Services.Protocols.SoapException : string * System.Xml.XmlQualifiedName * string * string * string * System.Xml.XmlNode * System.Web.Services.Protocols.SoapFaultSubCode * Exception -> System.Web.Services.Protocols.SoapException
Public Sub New (message As String, code As XmlQualifiedName, actor As String, role As String, lang As String, detail As XmlNode, subCode As SoapFaultSubCode, innerException As Exception)
参数
- code
- XmlQualifiedName
一个 XmlQualifiedName ,指定发生的错误类型。 此参数设置 Code 属性。
- subCode
- SoapFaultSubCode
SOAP 错误的可选子代码。 此参数设置 SubCode 属性。
- innerException
- Exception
异常是异常的根本原因。 此参数设置 InnerException 属性。