Edit

Share via


FaultCode Constructors

Definition

Initializes a new instance of the FaultCode class.

Overloads

FaultCode(String)

Initializes a new instance of the FaultCode class.

FaultCode(String, FaultCode)

Initializes a new instance of the FaultCode class.

FaultCode(String, String)

Initializes a new instance of the FaultCode class with the specified name and namespace.

FaultCode(String, String, FaultCode)

Initializes a new instance of the FaultCode class with the specified name, namespace, and fault subcode.

FaultCode(String)

Source:
FaultCode.cs
Source:
FaultCode.cs
Source:
FaultCode.cs

Initializes a new instance of the FaultCode class.

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

Parameters

name
String

The name of the fault code.

Applies to

FaultCode(String, FaultCode)

Source:
FaultCode.cs
Source:
FaultCode.cs
Source:
FaultCode.cs

Initializes a new instance of the FaultCode class.

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

Parameters

name
String

The name of the fault code.

subCode
FaultCode

The fault subcode.

Applies to

FaultCode(String, String)

Source:
FaultCode.cs
Source:
FaultCode.cs
Source:
FaultCode.cs

Initializes a new instance of the FaultCode class with the specified name and namespace.

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

Parameters

name
String

The local name of the fault code.

ns
String

The namespace name of the fault code.

Exceptions

name or ns is null.

name is an empty string.

Remarks

A FaultCode object is used in conjunction with a MessageFault object to fully represent a SOAP fault.

Applies to

FaultCode(String, String, FaultCode)

Source:
FaultCode.cs
Source:
FaultCode.cs
Source:
FaultCode.cs

Initializes a new instance of the FaultCode class with the specified name, namespace, and fault subcode.

public:
 FaultCode(System::String ^ name, System::String ^ ns, System::ServiceModel::FaultCode ^ subCode);
public FaultCode (string name, string ns, System.ServiceModel.FaultCode subCode);
new System.ServiceModel.FaultCode : string * string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultCode
Public Sub New (name As String, ns As String, subCode As FaultCode)

Parameters

name
String

The local name of the fault code.

ns
String

The namespace name of the fault code.

subCode
FaultCode

A FaultCode object that represents the fault subcode.

Exceptions

name or ns is null.

name is an empty string.

Applies to