HttpClientHandler.MaxAutomaticRedirections 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置处理程序遵循的重定向的最大数目。
public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };public int MaxAutomaticRedirections { get; set; }[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxAutomaticRedirections { get; set; }member this.MaxAutomaticRedirections : int with get, set[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.MaxAutomaticRedirections : int with get, setPublic Property MaxAutomaticRedirections As Integer属性值
处理程序遵循的重定向响应的最大数目。 默认值为 50。
- 属性
注解
属性 MaxAutomaticRedirections 设置请求遵循的最大重定向数( AllowAutoRedirect 如果 属性为 true)。