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

Initializes a new instance of the FaultCode class.

C#
public FaultCode(string name);

Parameters

name
String

The name of the fault code.

Applies to

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

FaultCode(String, FaultCode)

Source:
FaultCode.cs
Source:
FaultCode.cs

Initializes a new instance of the FaultCode class.

C#
public FaultCode(string name, System.ServiceModel.FaultCode subCode);

Parameters

name
String

The name of the fault code.

subCode
FaultCode

The fault subcode.

Applies to

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

FaultCode(String, String)

Source:
FaultCode.cs
Source:
FaultCode.cs

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

C#
public FaultCode(string name, string ns);

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

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

FaultCode(String, String, FaultCode)

Source:
FaultCode.cs
Source:
FaultCode.cs

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

C#
public FaultCode(string name, string ns, System.ServiceModel.FaultCode subCode);

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

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0