ServicePoint::IdleSince Property
.NET Framework (current version)
Gets the date and time that the ServicePoint object was last connected to a host.
Assembly: System (in System.dll)
Property Value
Type: System::DateTimeA DateTime object that contains the date and time at which the ServicePoint object was last connected.
The IdleSince property records the last date and time at which a service point was disconnected from a host. When the difference between the current time and IdleSince exceeds the value of MaxIdleTime, the ServicePoint object is available for recycling to another connection.
The following code example uses the IdleSince property to set and retrieve the date and time that the ServicePoint object was last connected to a host.
// Display the date and time that the ServicePoint was last // connected to a host. Console::WriteLine( "IdleSince = {0}", sp->IdleSince ); // 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 = {0}", sp->MaxIdleTime );
.NET Framework
Available since 1.1
Available since 1.1
Show: