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

属性值

Boolean

true 若要遵循 HTTP 重定向响应,请执行以下操作:否则,为 false. 默认值为 true

注解

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

适用于