HttpWebRequest.DefaultMaximumErrorResponseLength Property

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

Namespace: System.Net
Assembly: System (in system.dll)

static property int DefaultMaximumErrorResponseLength {
	int get ();
	void set (int value);
/** @property */
public static int get_DefaultMaximumErrorResponseLength ()

/** @property */
public static void set_DefaultMaximumErrorResponseLength (int value)

public static function get DefaultMaximumErrorResponseLength () : int

public static function set DefaultMaximumErrorResponseLength (value : int)

Not applicable.

Property Value

An integer that represents the default maximum length of an HTTP error response.

Exception typeCondition


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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0