FaultException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FaultException class.
Overloads
FaultException() |
Initializes a new instance of the FaultException class. |
FaultException(String, FaultCode, String) |
Initializes a new instance of the FaultException class using the specified reason, fault code, and action value. |
FaultException(String, FaultCode) |
Initializes a new instance of the FaultException class using the specified reason and SOAP fault code. |
FaultException(FaultReason, FaultCode) |
Initializes a new instance of the FaultException class using the specified reason and fault code. |
FaultException(MessageFault, String) |
Initializes a new instance of the FaultException class using the specified message fault values and the provided action string. |
FaultException(FaultReason, FaultCode, String) |
Initializes a new instance of the FaultException class using the specified reason, fault code, and action value. |
FaultException(String) |
Initializes a new instance of the FaultException class with the specified fault reason. |
FaultException(FaultReason) |
Initializes a new instance of the FaultException class using the specified reason. |
FaultException(MessageFault) |
Initializes a new instance of the FaultException class using the specified message fault values. |
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()
- Source:
- FaultException.cs
- Source:
- FaultException.cs
Initializes a new instance of the FaultException class.
public:
FaultException();
public FaultException ();
Public Sub New ()
Applies to
FaultException(String, FaultCode, String)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The reason for the SOAP fault.
- code
- FaultCode
The fault code for the SOAP fault.
- action
- String
The action value for the SOAP fault.
Applies to
FaultException(String, FaultCode)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
Initializes a new instance of the FaultException class using the specified reason and SOAP fault code.
public:
FaultException(System::String ^ reason, System::ServiceModel::FaultCode ^ code);
public FaultException (string reason, System.ServiceModel.FaultCode code);
new System.ServiceModel.FaultException : string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultException
Public Sub New (reason As String, code As FaultCode)
Parameters
- reason
- String
The reason for the SOAP fault.
- code
- FaultCode
The SOAP fault code for the fault.
Applies to
FaultException(FaultReason, FaultCode)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The reason for the SOAP fault.
- code
- FaultCode
The fault code for the SOAP fault.
Applies to
FaultException(MessageFault, String)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The message fault that contains the default SOAP fault values to use.
- action
- String
The action of the SOAP fault.
Applies to
FaultException(FaultReason, FaultCode, String)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The reason for the SOAP fault.
- code
- FaultCode
The fault code for the SOAP fault.
- action
- String
The action value for the SOAP fault.
Applies to
FaultException(String)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
Initializes a new instance of the FaultException class with the specified fault reason.
public:
FaultException(System::String ^ reason);
public FaultException (string reason);
new System.ServiceModel.FaultException : string -> System.ServiceModel.FaultException
Public Sub New (reason As String)
Parameters
- reason
- String
The reason for the fault.
Applies to
FaultException(FaultReason)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The reason for the SOAP fault.
Applies to
FaultException(MessageFault)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The message fault that contains the default SOAP fault values.
Applies to
FaultException(SerializationInfo, StreamingContext)
- Source:
- FaultException.cs
- Source:
- FaultException.cs
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
The serialization information necessary to reconstruct the FaultException object from a stream.
- context
- StreamingContext
The streaming context required to reconstruct the FaultException object.
Applies to
.NET