HttpWebRequest.DefaultMaximumErrorResponseLength Property

Definition

Gets or sets the default maximum length of an HTTP error response.

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

Property Value

Int32

The default maximum length of an HTTP error response.

Exceptions

The value is less than 0 and is not equal to -1.

Applies to