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 or sets the HTTP status code that is expected for this request.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Property ExpectedHttpStatusCode As Integer
public int ExpectedHttpStatusCode { get; set; }
public:
property int ExpectedHttpStatusCode {
int get ();
void set (int value);
}
member ExpectedHttpStatusCode : int with get, set
function get ExpectedHttpStatusCode () : int
function set ExpectedHttpStatusCode (value : int)
Property Value
Type: System.Int32
The HTTP status code.
Remarks
You can use this property in code to prevent a request failure when you expect a failure status for a request, such as a "404 Not Found" status.
.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.