StatusCode Property
Collapse the table of content
Expand the table of content

HttpResponseMessageProperty.StatusCode Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the status code of the current HTTP response to which this property is attached.

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

public HttpStatusCode StatusCode { get; set; }

Property Value

Type: System.Net.HttpStatusCode
The HttpStatusCode to send on the HTTP response.

ExceptionCondition
ArgumentOutOfRangeException

The value is set to less than 100 or greater than 599.

This property has one of the values in the HttpStatusCode enumeration.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft