FaultException.CreateFault メソッド

定義

FaultException オブジェクトを返します。

オーバーロード

CreateFault(MessageFault, Type[])

指定したメッセージ エラーと詳細な型の配列から FaultException オブジェクトを返します。

CreateFault(MessageFault, String, Type[])

指定したメッセージ エラー、アクション、および詳細な型の配列から FaultException オブジェクトを返します。

CreateFault(MessageFault, Type[])

指定したメッセージ エラーと詳細な型の配列から FaultException オブジェクトを返します。

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

パラメーター

messageFault
MessageFault

既定の SOAP エラー情報が含まれるメッセージ エラー。

faultDetailTypes
Type[]

エラーの詳細が含まれる型の配列。

戻り値

FaultException

SOAP エラー メッセージが受信されたことを示すためにスローできる FaultException オブジェクト。

注釈

faultDetailTypes パラメーターには、候補の詳細タイプが含まれています。 faultDetailTypes のいずれかに messageFault パラメーターと一致するスキーマがある場合は、System.ServiceModel.FaultException<TDetail> が返されます。型パラメーターは、一致する候補タイプです。

適用対象

CreateFault(MessageFault, String, Type[])

指定したメッセージ エラー、アクション、および詳細な型の配列から FaultException オブジェクトを返します。

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

パラメーター

messageFault
MessageFault

既定の SOAP エラー情報が含まれるメッセージ エラー。

action
String

エラーのアクション値。

faultDetailTypes
Type[]

エラーの詳細が含まれる型の配列。

戻り値

FaultException

SOAP エラー メッセージが受信されたことを示すためにスローできる FaultException オブジェクト。

注釈

faultDetailTypes パラメーターには、候補の詳細タイプが含まれています。 faultDetailTypes のいずれかに messageFault パラメーターと一致するスキーマがある場合は、System.ServiceModel.FaultException<TDetail> が返されます。型パラメーターは、一致する候補タイプです。

適用対象