Bewerken

Share via


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; }
static member DefaultMaximumErrorResponseLength : int with get, set
Public Shared Property DefaultMaximumErrorResponseLength As Integer

Property Value

The default maximum length, in kilobytes (1024 bytes), of an HTTP error response.

Exceptions

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

Applies to