Export (0) Print
Expand All

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)

'Declaration
Public Shared Property DefaultMaximumErrorResponseLength As Integer
'Usage
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

ArgumentOutOfRangeException

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

Community Additions

ADD
Show:
© 2014 Microsoft