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.

Exception Condition
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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: