Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebTestResponse::StatusCode Property

 

Gets the status of the response.

Namespace:   Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public:
property HttpStatusCode StatusCode {
	HttpStatusCode get();
	internal: void set(HttpStatusCode value);
}

Property Value

Type: System.Net::HttpStatusCode

A HttpStatusCode value.

Exception Condition
ObjectDisposedException

The current instance has been disposed.

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

Return to top
Show: