通过


HttpClientHandler.MaxAutomaticRedirections 属性

定义

获取或设置处理程序所遵循的最大重定向数。

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的最大重定向数。

适用于