WebRequestHandler.ReadWriteTimeout Property

.NET Framework (current version)

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 a time-out in milliseconds when writing a request to or reading a response from a server.

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

public int ReadWriteTimeout { get; set; }

Property Value

Type: System.Int32

Returns Int32.

The number of milliseconds before the writing or reading times out. The default value is 300,000 milliseconds (5 minutes).

.NET Framework
Available since 4.5
Return to top