WebTestRequest.FollowRedirects 属性

更新:2007 年 11 月

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

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

语法

声明
Public Property FollowRedirects As Boolean
用法
Dim instance As WebTestRequest
Dim value As Boolean

value = instance.FollowRedirects

instance.FollowRedirects = value
public bool FollowRedirects { get; set; }
public:
property bool FollowRedirects {
    bool get ();
    void set (bool value);
}
public function get FollowRedirects () : boolean
public function set FollowRedirects (value : boolean)

属性值

类型:System.Boolean

如果遵循了重定向,则为 true;否则为 false。默认值为 true。

权限

另请参见

参考

WebTestRequest 类

WebTestRequest 成员

Microsoft.VisualStudio.TestTools.WebTesting 命名空间