共用方式為


HttpResponse.IsRequestBeingRedirected 屬性

定義

會獲得一個布林值,表示客戶端是否正在被轉移到新地點。

public:
 property bool IsRequestBeingRedirected { bool get(); };
public bool IsRequestBeingRedirected { get; }
member this.IsRequestBeingRedirected : bool
Public ReadOnly Property IsRequestBeingRedirected As Boolean

屬性值

true如果位置響應標頭的值與目前位置不同;否則,。 false

備註

利用 IsRequestBeingRedirected 帶有該 RedirectLocation 屬性的屬性來測試並判斷 HTTP Location 標頭中傳送給客戶端的絕對 URI 是否與目前的 URI 不同,以及即將傳輸的新目標 URI 會是什麼。

適用於