FaultException.CreateFault Metoda

Definicja

Zwraca FaultException obiektu.

Przeciążenia

CreateFault(MessageFault, Type[])

FaultException Zwraca obiekt z określonej błędu komunikatu i tablicę typów szczegółów.

CreateFault(MessageFault, String, Type[])

FaultException Zwraca obiekt z określonego błędu komunikatu, akcji i tablicy typów szczegółów.

CreateFault(MessageFault, Type[])

FaultException Zwraca obiekt z określonej błędu komunikatu i tablicę typów szczegółów.

public:
 static System::ServiceModel::FaultException ^ CreateFault(System::ServiceModel::Channels::MessageFault ^ messageFault, ... cli::array <Type ^> ^ faultDetailTypes);
public static System.ServiceModel.FaultException CreateFault (System.ServiceModel.Channels.MessageFault messageFault, params Type[] faultDetailTypes);
static member CreateFault : System.ServiceModel.Channels.MessageFault * Type[] -> System.ServiceModel.FaultException
Public Shared Function CreateFault (messageFault As MessageFault, ParamArray faultDetailTypes As Type()) As FaultException

Parametry

messageFault
MessageFault

Błąd komunikatu zawierający domyślne informacje o błędzie protokołu SOAP.

faultDetailTypes
Type[]

Tablica typów, które zawierają szczegóły błędów.

Zwraca

FaultException

FaultException Obiekt, który można zgłosić, aby wskazać, że został odebrany komunikat o błędzie PROTOKOŁU SOAP.

Uwagi

Parametr faultDetailTypes zawiera typy szczegółów kandydata. Jeśli którykolwiek z nich faultDetailTypes zawiera schemat zgodny messageFault z parametrem, System.ServiceModel.FaultException<TDetail> zwracany jest parametr typu , gdzie parametr typu jest pasującym typem kandydata.

Dotyczy

CreateFault(MessageFault, String, Type[])

FaultException Zwraca obiekt z określonego błędu komunikatu, akcji i tablicy typów szczegółów.

public:
 static System::ServiceModel::FaultException ^ CreateFault(System::ServiceModel::Channels::MessageFault ^ messageFault, System::String ^ action, ... cli::array <Type ^> ^ faultDetailTypes);
public static System.ServiceModel.FaultException CreateFault (System.ServiceModel.Channels.MessageFault messageFault, string action, params Type[] faultDetailTypes);
static member CreateFault : System.ServiceModel.Channels.MessageFault * string * Type[] -> System.ServiceModel.FaultException
Public Shared Function CreateFault (messageFault As MessageFault, action As String, ParamArray faultDetailTypes As Type()) As FaultException

Parametry

messageFault
MessageFault

Błąd komunikatu zawierający domyślne informacje o błędzie protokołu SOAP.

action
String

Wartość akcji błędu.

faultDetailTypes
Type[]

Tablica typów, które zawierają szczegóły błędów.

Zwraca

FaultException

FaultException Obiekt, który można zgłosić, aby wskazać, że został odebrany komunikat o błędzie PROTOKOŁU SOAP.

Uwagi

Parametr faultDetailTypes zawiera typy szczegółów kandydata. Jeśli którykolwiek z nich faultDetailTypes zawiera schemat zgodny messageFault z parametrem, System.ServiceModel.FaultException<TDetail> zwracany jest parametr typu , gdzie parametr typu jest pasującym typem kandydata.

Dotyczy