FaultException(TDetail) Constructor
Collapse the table of content
Expand the table of content

FaultException<TDetail> Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the FaultException<TDetail> class that uses a specified detail object and SOAP fault reason, code and action values.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public FaultException(
	TDetail detail,
	FaultReason reason,
	FaultCode code,
	string action
)

Parameters

detail
Type: TDetail
The object used as the SOAP fault detail.
reason
Type: System.ServiceModel.FaultReason
The reason for the SOAP fault.
code
Type: System.ServiceModel.FaultCode
The fault code for the SOAP fault.
action
Type: System.String
The action of the SOAP fault.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft