WinHttpHandler.MaxAutomaticRedirections 属性

定义

获取或设置允许的最大 HTTP 重定向数。Gets or sets the maximum number of allowed HTTP redirects.

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

属性值

Int32

允许的最大 HTTP 重定向数。The maximum number of allowed HTTP redirects.

注解

此属性的默认值为50。The default value for this property is 50. 仅当设置为时,此值才适用 AutomaticRedirection trueThis value only applies if AutomaticRedirection is set to true.

适用于