WebTestRequest.FollowRedirects 属性

获取或设置一个值,该值指示是否自动遵循重定向。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
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)

属性值

类型:System.Boolean
如果遵循了重定向,则为 true;否则为 false。默认值为 true。

.NET Framework 安全性

请参见

参考

WebTestRequest 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间