Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StatusCode Property
Collapse the table of content
Expand the table of content

WebFaultException<T>.StatusCode Property

.NET Framework 4.6 and 4.5

Gets the HttpStatusCode associated with the fault.

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

public HttpStatusCode StatusCode { get; private set; }

Property Value

Type: System.Net.HttpStatusCode
The HTTP status code associated with the fault.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft