Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.MaximumAutomaticRedirections Property

Gets or sets the maximum number of redirects that the current instance will follow.

public int MaximumAutomaticRedirections { set; get; }

Value

A int value that indicates the maximum number of redirection responses that the current instance will follow. The default value is implementation-specific.

Exceptions

TypeReason
ArgumentExceptionThe value specified for a set operation is less than or equal to zero.

Remarks

Note: This property sets the maximum number of redirections for the request to follow if the HttpWebRequest.AllowAutoRedirect property is true.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0