FaultCode.CreateReceiverFaultCode Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy kod błędu odbiorcy dla komunikatu.
CreateReceiverFaultCode(FaultCode) |
Tworzy kod błędu odbiorcy z określonym podkodem. |
CreateReceiverFaultCode(String, String) |
Tworzy kod błędu odbiorcy z określonym podkodem. |
CreateReceiverFaultCode(FaultCode)
Tworzy kod błędu odbiorcy z określonym podkodem.
public:
static System::ServiceModel::FaultCode ^ CreateReceiverFaultCode(System::ServiceModel::FaultCode ^ subCode);
public static System.ServiceModel.FaultCode CreateReceiverFaultCode (System.ServiceModel.FaultCode subCode);
static member CreateReceiverFaultCode : System.ServiceModel.FaultCode -> System.ServiceModel.FaultCode
Public Shared Function CreateReceiverFaultCode (subCode As FaultCode) As FaultCode
Parametry
Zwraca
FaultCode Obiekt z utworzonym podkodem błędu protokołu SOAP we SubCode właściwości .
Wyjątki
subCode
to null
.
Dotyczy
.NET Framework 4.8 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 |
CreateReceiverFaultCode(String, String)
Tworzy kod błędu odbiorcy z określonym podkodem.
public:
static System::ServiceModel::FaultCode ^ CreateReceiverFaultCode(System::String ^ name, System::String ^ ns);
public static System.ServiceModel.FaultCode CreateReceiverFaultCode (string name, string ns);
static member CreateReceiverFaultCode : string * string -> System.ServiceModel.FaultCode
Public Shared Function CreateReceiverFaultCode (name As String, ns As String) As FaultCode
Parametry
- name
- String
Lokalna nazwa podkodu błędu.
- ns
- String
Nazwa przestrzeni nazw dla podkodu błędu.
Zwraca
FaultCode Wystąpienie z utworzonym podkodem błędu SubCode protokołu SOAP we właściwości .
Dotyczy
.NET Framework 4.8 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 |