Export (0) Print
Expand All

HttpWebResponse.StatusDescription Property

Gets the status description returned with the response.

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

abstract StatusDescription : string with get 
override StatusDescription : string with get

Property Value

Type: System.String
A string that describes the status of the response.

ExceptionCondition
ObjectDisposedException

The current instance has been disposed.

A common status message is OK.

The following example uses StatusDescription to verify that the status of the HttpWebResponse is OK.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft