Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebFaultException Constructor (HttpStatusCode)

.NET Framework (current version)
 

Initializes a new instance of the WebFaultException class with the specified HttpStatusCode.

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

public:
WebFaultException(
	HttpStatusCode statusCode
)

Parameters

statusCode
Type: System.Net::HttpStatusCode

The HTTP status code to return to the caller.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft