WinHttpHandler.AutomaticRedirection 属性

定义

获取或设置一个值,该值指示处理程序是否应跟随 HTTP 重定向响应。

public:
 property bool AutomaticRedirection { bool get(); void set(bool value); };
public bool AutomaticRedirection { get; set; }
member this.AutomaticRedirection : bool with get, set
Public Property AutomaticRedirection As Boolean

属性值

true 遵循 HTTP 重定向响应;否则为 false。 默认值为 true

注解

当此属性设置为 true时,将自动跟踪来自服务器的所有 HTTP 重定向响应,除非它们从 HTTPS 终结点重定向到 HTTP 终结点。

适用于