HttpResponseMessage::IsSuccessStatusCode Property

.NET Framework (current version)
 

Gets a value that indicates if the HTTP response was successful.

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

public:
property bool IsSuccessStatusCode {
	bool get();
}

Property Value

Type: System::Boolean

A value that indicates if the HTTP response was successful. true if StatusCode was in the range 200-299; otherwise false.

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