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, set
Public Property MaxAutomaticRedirections As Integer
属性值
处理程序遵循的最大重定向响应数。 默认值为 50。
- 属性
注解
如果属性为 true,则此属性MaxAutomaticRedirections设置请求所遵循AllowAutoRedirect的最大重定向数。