Export (0) Print
Expand All

WebFaultException<T> Constructor (T, HttpStatusCode, IEnumerable<Type>)

Initializes a new instance of the WebFaultException<T> class with the specified exception detail and the StatusCode to return to the caller.

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

public WebFaultException(
	T detail,
	HttpStatusCode statusCode,
	IEnumerable<Type> knownTypes
)

Parameters

detail
Type: T
The fault.
statusCode
Type: System.Net.HttpStatusCode
The HTTP status code to set on the response message.
knownTypes
Type: System.Collections.Generic.IEnumerable<Type>
The set of known types that are used for serialization and deserialization.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft