This documentation is archived and is not being maintained.

HttpWebRequest.DefaultMaximumResponseHeadersLength Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the default for the MaximumResponseHeadersLength property.

[Visual Basic]
Public Shared Property DefaultMaximumResponseHeadersLength As _
public static int DefaultMaximumResponseHeadersLength {get; set;}
public: __property static int get_DefaultMaximumResponseHeadersLength();
public: __property static void
public static function get DefaultMaximumResponseHeadersLength() : int;
public static function set DefaultMaximumResponseHeadersLength(int);

Property Value

The configuration file sets this value to 64 kilobytes.


Exception Type Condition
ArgumentOutOfRangeException The value is less than 0 and is not equal to -1.


This value can be changed in the configuration file or can be overridden using the MaximumResponseHeadersLength property.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace