Share via


StatusCode Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the status of the response.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

Syntax

'Declaration
Public ReadOnly Property StatusCode As HttpStatusCode
public HttpStatusCode StatusCode { get; }
public:
property HttpStatusCode StatusCode {
    HttpStatusCode get ();
}
member StatusCode : HttpStatusCode with get
function get StatusCode () : HttpStatusCode

Property Value

Type: System.Net. . :: . .HttpStatusCode
One of the HttpStatusCode values.

Remarks

The StatusCode parameter is a number that indicates the status of the HTTP response. The expected values for status are defined in the HttpStatusCode class.

.NET Framework Security

See Also

Reference

HttpWebResponse Class

System.Net Namespace