Compartir a través de


FaultContractAttribute Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the FaultContractAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    detailType As Type _
)
public FaultContractAttribute(
    Type detailType
)

Parameters

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

Exceptions

Exception Condition
ArgumentNullException

The detailType argument is nulla null reference (Nothing in Visual Basic).

Remarks

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

Version Information

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

Platforms

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