Export (0) Print
Expand All

FaultContractAttribute Constructor

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft