Export (0) Print
Expand All

HttpWebRequest.DefaultMaximumErrorResponseLength Property

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)

Not applicable.

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 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

Community Additions

ADD
Show:
© 2014 Microsoft