แก้ไข

แชร์ผ่าน


SoapFault Constructors

Definition

Initializes a new instance of the SoapFault class.

Overloads

SoapFault()

Initializes a new instance of the SoapFault class with default values.

SoapFault(String, String, String, ServerFault)

Initializes a new instance of the SoapFault class, setting the properties to specified values.

SoapFault()

Initializes a new instance of the SoapFault class with default values.

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

Applies to

SoapFault(String, String, String, ServerFault)

Initializes a new instance of the SoapFault class, setting the properties to specified values.

public:
 SoapFault(System::String ^ faultCode, System::String ^ faultString, System::String ^ faultActor, System::Runtime::Serialization::Formatters::ServerFault ^ serverFault);
public SoapFault (string faultCode, string faultString, string faultActor, System.Runtime.Serialization.Formatters.ServerFault serverFault);
new System.Runtime.Serialization.Formatters.SoapFault : string * string * string * System.Runtime.Serialization.Formatters.ServerFault -> System.Runtime.Serialization.Formatters.SoapFault
Public Sub New (faultCode As String, faultString As String, faultActor As String, serverFault As ServerFault)

Parameters

faultCode
String

The fault code for the new instance of SoapFault. The fault code identifies the type of the fault that occurred.

faultString
String

The fault string for the new instance of SoapFault. The fault string provides a human readable explanation of the fault.

faultActor
String

The URI of the object that generated the fault.

serverFault
ServerFault

The description of a common language runtime exception. This information is also present in the Detail property.

Applies to