Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the status of the response.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property StatusCode As HttpStatusCode
'Usage
Dim instance As WebTestResponse
Dim value As HttpStatusCode
value = instance.StatusCode
public HttpStatusCode StatusCode { get; }
public:
property HttpStatusCode StatusCode {
HttpStatusCode get ();
}
public function get StatusCode () : HttpStatusCode
Property Value
Type: System.Net.HttpStatusCode
A HttpStatusCode value.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The current instance has been disposed. |
Remarks
The StatusCode parameter is a number indicating the status of the HTTP response. The expected values for status are defined in the HttpStatusCode class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.WebTesting Namespace