HttpWebRequest.DefaultMaximumErrorResponseLength Property

Note: This property is new in the .NET Framework version 2.0.

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

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

Public Shared Property DefaultMaximumErrorResponseLength As Integer
Dim value As Integer

value = HttpWebRequest.DefaultMaximumErrorResponseLength

HttpWebRequest.DefaultMaximumErrorResponseLength = 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)

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 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0