FaultCode.CreateReceiverFaultCode Method

Definition

Creates a receiver fault code for a message.

Overloads

CreateReceiverFaultCode(FaultCode)

Creates a receiver fault code with the specified subcode.

CreateReceiverFaultCode(String, String)

Creates a receiver fault code with the specified subcode.

CreateReceiverFaultCode(FaultCode)

Source:
FaultCode.cs
Source:
FaultCode.cs

Creates a receiver fault code with the specified subcode.

C#
public static System.ServiceModel.FaultCode CreateReceiverFaultCode(System.ServiceModel.FaultCode subCode);

Parameters

subCode
FaultCode

A FaultCode object that represents the fault subcode.

Returns

A FaultCode object with the created SOAP fault subcode in the SubCode property.

Exceptions

subCode is null.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.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

CreateReceiverFaultCode(String, String)

Source:
FaultCode.cs
Source:
FaultCode.cs

Creates a receiver fault code with the specified subcode.

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

Parameters

name
String

The local name for the fault subcode.

ns
String

The namespace name for the fault subcode.

Returns

A FaultCode instance with the created SOAP fault subcode in the SubCode property.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.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