Share via


WebTestRequest.FollowRedirects Property

Gets or sets a value that indicates whether to automatically follow redirects.

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

Syntax

'Declaration
Public Property FollowRedirects As Boolean
public bool FollowRedirects { get; set; }
public:
property bool FollowRedirects {
    bool get ();
    void set (bool value);
}
member FollowRedirects : bool with get, set
function get FollowRedirects () : boolean
function set FollowRedirects (value : boolean)

Property Value

Type: System.Boolean
true if redirects are followed; otherwise, false. The default is true.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace