共用方式為


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 命名空間