SocketsHttpHandler.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 重定向数。

例外

指定的值小于或等于零。

已在当前实例上启动操作。

已释放当前实例。

适用于