FaultException FaultException FaultException FaultException Constructors

Definition

Overloads

FaultException() FaultException() FaultException()

Initializes a new instance of the FaultException class.

FaultException(String, FaultCode) FaultException(String, FaultCode) FaultException(String, FaultCode) FaultException(String, FaultCode)

Initializes a new instance of the FaultException class using the specified reason and SOAP fault code.

FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String)

Initializes a new instance of the FaultException class using the specified reason, fault code, and action value.

FaultException(String) FaultException(String) FaultException(String) FaultException(String)

Initializes a new instance of the FaultException class with the specified fault reason.

FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode)

Initializes a new instance of the FaultException class using the specified reason and fault code.

FaultException(String, FaultCode, String) FaultException(String, FaultCode, String) FaultException(String, FaultCode, String) FaultException(String, FaultCode, String)

Initializes a new instance of the FaultException class using the specified reason, fault code, and action value.

FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext)

Initializes a new instance of the FaultException class using the specified serialization information and context when deserializing a stream into a FaultException object.

FaultException(FaultReason) FaultException(FaultReason) FaultException(FaultReason) FaultException(FaultReason)

Initializes a new instance of the FaultException class using the specified reason.

FaultException(MessageFault) FaultException(MessageFault) FaultException(MessageFault) FaultException(MessageFault)

Initializes a new instance of the FaultException class using the specified message fault values.

FaultException(MessageFault, String) FaultException(MessageFault, String) FaultException(MessageFault, String) FaultException(MessageFault, String)

Initializes a new instance of the FaultException class using the specified message fault values and the provided action string.

FaultException() FaultException() FaultException()

Initializes a new instance of the FaultException class.

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

FaultException(String, FaultCode) FaultException(String, FaultCode) FaultException(String, FaultCode) FaultException(String, FaultCode)

Initializes a new instance of the FaultException class using the specified reason and SOAP fault code.

public:
 FaultException(System::String ^ msg, System::ServiceModel::FaultCode ^ code);
public FaultException (string msg, System.ServiceModel.FaultCode code);
new System.ServiceModel.FaultException : string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultException
Public Sub New (msg As String, code As FaultCode)

Parameters

reason
String String String String

The reason for the SOAP fault.

code
FaultCode FaultCode FaultCode FaultCode

The SOAP fault code for the fault.

FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String) FaultException(FaultReason, FaultCode, String)

Initializes a new instance of the FaultException class using the specified reason, fault code, and action value.

public:
 FaultException(System::ServiceModel::FaultReason ^ reason, System::ServiceModel::FaultCode ^ code, System::String ^ action);
public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code, string action);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason * System.ServiceModel.FaultCode * string -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason, code As FaultCode, action As String)

Parameters

reason
FaultReason FaultReason FaultReason FaultReason

The reason for the SOAP fault.

code
FaultCode FaultCode FaultCode FaultCode

The fault code for the SOAP fault.

action
String String String String

The action value for the SOAP fault.

FaultException(String) FaultException(String) FaultException(String) FaultException(String)

Initializes a new instance of the FaultException class with the specified fault reason.

public:
 FaultException(System::String ^ msg);
public FaultException (string msg);
new System.ServiceModel.FaultException : string -> System.ServiceModel.FaultException
Public Sub New (msg As String)

Parameters

reason
String String String String

The reason for the fault.

FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode) FaultException(FaultReason, FaultCode)

Initializes a new instance of the FaultException class using the specified reason and fault code.

public:
 FaultException(System::ServiceModel::FaultReason ^ reason, System::ServiceModel::FaultCode ^ code);
public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason * System.ServiceModel.FaultCode -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason, code As FaultCode)

Parameters

reason
FaultReason FaultReason FaultReason FaultReason

The reason for the SOAP fault.

code
FaultCode FaultCode FaultCode FaultCode

The fault code for the SOAP fault.

FaultException(String, FaultCode, String) FaultException(String, FaultCode, String) FaultException(String, FaultCode, String) FaultException(String, FaultCode, String)

Initializes a new instance of the FaultException class using the specified reason, fault code, and action value.

public:
 FaultException(System::String ^ reason, System::ServiceModel::FaultCode ^ code, System::String ^ action);
public FaultException (string reason, System.ServiceModel.FaultCode code, string action);
new System.ServiceModel.FaultException : string * System.ServiceModel.FaultCode * string -> System.ServiceModel.FaultException
Public Sub New (reason As String, code As FaultCode, action As String)

Parameters

reason
String String String String

The reason for the SOAP fault.

code
FaultCode FaultCode FaultCode FaultCode

The fault code for the SOAP fault.

action
String String String String

The action value for the SOAP fault.

FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext) FaultException(SerializationInfo, StreamingContext)

Initializes a new instance of the FaultException class using the specified serialization information and context when deserializing a stream into a FaultException object.

protected:
 FaultException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected FaultException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.FaultException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.FaultException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

The serialization information necessary to reconstruct the FaultException object from a stream.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The streaming context required to reconstruct the FaultException object.

FaultException(FaultReason) FaultException(FaultReason) FaultException(FaultReason) FaultException(FaultReason)

Initializes a new instance of the FaultException class using the specified reason.

public:
 FaultException(System::ServiceModel::FaultReason ^ reason);
public FaultException (System.ServiceModel.FaultReason reason);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason)

Parameters

reason
FaultReason FaultReason FaultReason FaultReason

The reason for the SOAP fault.

FaultException(MessageFault) FaultException(MessageFault) FaultException(MessageFault) FaultException(MessageFault)

Initializes a new instance of the FaultException class using the specified message fault values.

public:
 FaultException(System::ServiceModel::Channels::MessageFault ^ fault);
public FaultException (System.ServiceModel.Channels.MessageFault fault);
new System.ServiceModel.FaultException : System.ServiceModel.Channels.MessageFault -> System.ServiceModel.FaultException
Public Sub New (fault As MessageFault)

Parameters

fault
MessageFault MessageFault MessageFault MessageFault

The message fault that contains the default SOAP fault values.

FaultException(MessageFault, String) FaultException(MessageFault, String) FaultException(MessageFault, String) FaultException(MessageFault, String)

Initializes a new instance of the FaultException class using the specified message fault values and the provided action string.

public:
 FaultException(System::ServiceModel::Channels::MessageFault ^ fault, System::String ^ action);
public FaultException (System.ServiceModel.Channels.MessageFault fault, string action);
new System.ServiceModel.FaultException : System.ServiceModel.Channels.MessageFault * string -> System.ServiceModel.FaultException
Public Sub New (fault As MessageFault, action As String)

Parameters

fault
MessageFault MessageFault MessageFault MessageFault

The message fault that contains the default SOAP fault values to use.

action
String String String String

The action of the SOAP fault.

Applies to