Export (0) Print
Expand All

FaultException<TDetail> Constructor (TDetail, FaultReason, FaultCode, String)

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

Namespace:  System.ServiceModel
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft