HttpWebRequest::DefaultMaximumErrorResponseLength Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
property int DefaultMaximumErrorResponseLength {
	static int get();
	static void set(int value);
}

Property Value

Type: System::Int32

The default maximum length of an HTTP error response.

Exception Condition
ArgumentOutOfRangeException

The value is less than 0 and is not equal to -1.

.NET Framework
Available since 2.0
Return to top
Show: