HttpResponse.IsRequestBeingRedirected 属性

定义

获取指示客户端是否正在被传输到新位置的布尔值。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

属性值

Boolean

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

注解

IsRequestBeingRedirected 属性与属性结合使用, RedirectLocation 以测试和确定传输到 HTTP 标头中的客户端的绝对 uri 是否与 Location 当前 uri 不同,以及要传输到的新目标 URI。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.

适用于