Gets or sets the amount of time a connection associated with the ServicePoint object can remain idle before the connection is closed.
Assembly: System (in System.dll)
The default value of the ServicePointManager.MaxServicePointIdleTime property when the ServicePoint object is created. Subsequent changes to the MaxServicePointIdleTime property have no effect on existing ServicePoint objects.property is the value of the
When the ServicePoint is exceeded, the connection remains open until the application tries to use the connection. At that time, the Framework closes the connection and creates a new connection to the remote host.for a connection associated with a
Legacy Code Example
The following code example uses the ServicePoint idle time.property to set and retrieve the
' Display the date and time that the ServicePoint was last ' connected to a host. Console.WriteLine(("IdleSince = " + sp.IdleSince.ToString())) ' Display the maximum length of time that the ServicePoint instance ' is allowed to maintain an idle connection to an Internet ' resource before it is recycled for use in another connection. Console.WriteLine(("MaxIdleTime = " + sp.MaxIdleTime.ToString()))
Available since 1.1