Udostępnij za pośrednictwem


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)

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

See Also

Reference

WebTestResponse Class

WebTestResponse Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP