HttpResponse.IsRequestBeingRedirected HttpResponse.IsRequestBeingRedirected HttpResponse.IsRequestBeingRedirected HttpResponse.IsRequestBeingRedirected Property

定义

获取一个布尔值,该值指示客户端是否正在被传输到新的位置。Gets a Boolean value indicating whether the client is being transferred to a new location.

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

属性值

如果位置响应标头的值与当前位置不同,则为 true;否则为 falsetrue if the value of the location response header is different than the current location; otherwise, false.

注解

将属性与属性结合使用,以测试和确定传输到 HTTP Location标头中的客户端的绝对 uri 是否与当前 uri 不同,以及要使用的新目标 uri RedirectLocation IsRequestBeingRedirected传输到将是。Use the IsRequestBeingRedirected property with the RedirectLocation property to test and determine whether the absolute URI that is transmitted to the client in the HTTP Location header is different than the current URI and what the new intended URI that is being transferred to will be.

适用于