HttpResponse.IsRequestBeingRedirected 屬性

定義

取得布林值,指出用戶端是否傳輸至新位置。

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

屬性值

Boolean

如果位置回應標頭的值不同於目前的位置,則為 true,否則為 false

備註

使用 IsRequestBeingRedirected 屬性搭配 RedirectLocation 屬性來測試並判斷傳輸至 HTTP Location 標頭中用戶端的絕對 URI 是否與目前 URI 不同,以及要傳輸至之新預期 URI 的內容。

適用於