HttpResponseMessageProperty.StatusCode Property

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 Property StatusCode As HttpStatusCode

Property Value

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


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

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


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

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

Community Additions