Export (0) Print
Expand All

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 _
   Integer
[C#]
public static int DefaultMaximumResponseHeadersLength {get; set;}
[C++]
public: __property static int get_DefaultMaximumResponseHeadersLength();
public: __property static void
   set_DefaultMaximumResponseHeadersLength(int);
[JScript]
public static function get DefaultMaximumResponseHeadersLength() : int;
public static function set DefaultMaximumResponseHeadersLength(int);

Property Value

The configuration file sets this value to 64 kilobytes.

Exceptions

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

Remarks

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

Requirements

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

Show:
© 2014 Microsoft