FaultContractAttribute Constructor
Collapse the table of content
Expand the table of content

FaultContractAttribute 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 FaultContractAttribute class.

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

public FaultContractAttribute(
	Type detailType
)

Parameters

detailType
Type: System.Type
The serializable type that contains error information for the caller.

ExceptionCondition
ArgumentNullException

The detailType argument is null.

The constructor is typically executed by applying the attribute to a service method and specifying a type as the argument in the attribute.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft