FaultException.CreateFault メソッド

定義

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

オーバーロード

名前 説明
CreateFault(MessageFault, Type[])

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

CreateFault(MessageFault, String, Type[])

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

CreateFault(MessageFault, Type[])

ソース:
FaultException.cs
ソース:
FaultException.cs
ソース:
FaultException.cs

指定したメッセージ エラーと詳細型の配列から 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[]

エラーの詳細を含む型の配列。

返品

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

注釈

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

適用対象

CreateFault(MessageFault, String, Type[])

ソース:
FaultException.cs
ソース:
FaultException.cs
ソース:
FaultException.cs

指定したメッセージ エラー、アクション、および詳細型の配列から 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[]

エラーの詳細を含む型の配列。

返品

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

注釈

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

適用対象