WinHttpHandler.AutomaticRedirection 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示处理程序是否应跟随 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 终结点。