HttpResponse.IsRequestBeingRedirected 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得一個布林值,表示客戶端是否正在被轉移到新地點。
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 會是什麼。