संपादित करें

इसके माध्यम से साझा किया गया


SoapException Constructors

Definition

Initializes a new instance of the SoapException class.

Overloads

SoapException()

Initializes a new instance of the SoapException class.

SoapException(SerializationInfo, StreamingContext)

Initializes a new instance of the SoapException class with serialized data.

SoapException(String, XmlQualifiedName)

Initializes a new instance of the SoapException class with the specified exception message and exception code.

SoapException(String, XmlQualifiedName, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and reference to the root cause of the exception.

SoapException(String, XmlQualifiedName, String)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and URI that identifies the piece of code that caused the exception.

SoapException(String, XmlQualifiedName, SoapFaultSubCode)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and subcode.

SoapException(String, XmlQualifiedName, String, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the code that caused the exception, and reference to the root cause of the exception.

SoapException(String, XmlQualifiedName, String, XmlNode)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, and application specific exception information.

SoapException(String, XmlQualifiedName, String, XmlNode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, application-specific exception information, and reference to the root cause of the exception.

SoapException(String, XmlQualifiedName, String, String, XmlNode, SoapFaultSubCode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, application-specific exception information, and reference to the root cause of the exception.

SoapException(String, XmlQualifiedName, String, String, String, XmlNode, SoapFaultSubCode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, URI that represents the XML Web service's function in processing the SOAP message, the human language associated with the exception, the application-specific exception information, the subcode for the SOAP fault and reference to the root cause of the exception.

SoapException()

Initializes a new instance of the SoapException class.

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

Applies to

SoapException(SerializationInfo, StreamingContext)

Initializes a new instance of the SoapException class with serialized data.

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)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

SoapException(String, XmlQualifiedName)

Initializes a new instance of the SoapException class with the specified exception message and exception code.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

See also

Applies to

SoapException(String, XmlQualifiedName, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and reference to the root cause of the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

innerException
Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

See also

Applies to

SoapException(String, XmlQualifiedName, String)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and URI that identifies the piece of code that caused the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

See also

Applies to

SoapException(String, XmlQualifiedName, SoapFaultSubCode)

Initializes a new instance of the SoapException class with the specified exception message, exception code, and subcode.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

subCode
SoapFaultSubCode

An optional subcode for the SOAP fault. This parameter sets the SubCode property.

See also

Applies to

SoapException(String, XmlQualifiedName, String, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the code that caused the exception, and reference to the root cause of the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

innerException
Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

See also

Applies to

SoapException(String, XmlQualifiedName, String, XmlNode)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, and application specific exception information.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

detail
XmlNode

An XmlNode that contains application specific exception information. This parameter sets the Detail property.

Applies to

SoapException(String, XmlQualifiedName, String, XmlNode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, application-specific exception information, and reference to the root cause of the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

detail
XmlNode

An XmlNode that contains application specific exception information. This parameter sets the Detail property.

innerException
Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

Applies to

SoapException(String, XmlQualifiedName, String, String, XmlNode, SoapFaultSubCode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, application-specific exception information, and reference to the root cause of the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

role
String

A URI that represents the XML Web service's function in processing the SOAP message. This parameter sets the Role property.

detail
XmlNode

An XmlNode that contains application specific exception information. This parameter sets the Detail property.

subCode
SoapFaultSubCode

An optional subcode for the SOAP fault. This parameter sets the SubCode property.

innerException
Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

Applies to

SoapException(String, XmlQualifiedName, String, String, String, XmlNode, SoapFaultSubCode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, URI that represents the XML Web service's function in processing the SOAP message, the human language associated with the exception, the application-specific exception information, the subcode for the SOAP fault and reference to the root cause of the exception.

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)

Parameters

message
String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

code
XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

actor
String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

role
String

A URI that represents the XML Web service's function in processing the SOAP message. This parameter sets the Role property.

lang
String

A human language associated with the exception. This parameter sets the Lang property.

detail
XmlNode

An XmlNode that contains application specific exception information. This parameter sets the Detail property.

subCode
SoapFaultSubCode

An optional subcode for the SOAP fault. This parameter sets the SubCode property.

innerException
Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

Applies to