HttpWebRequest::DefaultMaximumErrorResponseLength Property

 

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: