WinHttpHandler.MaxAutomaticRedirections 属性

定义

获取或设置允许的最大 HTTP 重定向数。

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

属性值

允许的最大 HTTP 重定向数。

注解

此属性的默认值为 50。 仅当 设置为 trueAutomaticRedirection,此值才适用。

适用于