Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft das Datum und die Uhrzeit der letzten Verbindung des ServicePoint-Objekts mit einem Host ab.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
'Declaration
Public ReadOnly Property IdleSince As DateTime
'Usage
Dim instance As ServicePoint
Dim value As DateTime
value = instance.IdleSince
public DateTime IdleSince { get; }
public:
property DateTime IdleSince {
DateTime get ();
}
/** @property */
public DateTime get_IdleSince ()
public function get IdleSince () : DateTime
Eigenschaftenwert
Ein DateTime-Objekt, das Datum und Uhrzeit der letzten Verbindung des ServicePoint-Objekts enthält.
Hinweise
Die IdleSince-Eigenschaft zeichnet Datum und Uhrzeit der letzten Trennung eines Dienstpunkts von einem Host auf. Wenn die Differenz zwischen aktueller Uhrzeit und IdleSince den Wert von MaxIdleTime überschreitet, ist das ServicePoint-Objekt für die Wiederverwendung bei einer anderen Verbindung verfügbar.
Beispiel
Im folgenden Codebeispiel werden mit der IdleSince-Eigenschaft das Datum und die Uhrzeit des letzten Zeitpunkts einer Verbindung des ServicePoint-Objekts mit einem Host festgelegt und abgerufen.
' 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()))
// 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);
// 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 );
// Display the date and time that the ServicePoint was last
// connected to a host.
Console.WriteLine(("IdleSince = " + sp.get_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.get_MaxIdleTime()));
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0
Siehe auch
Referenz
ServicePoint-Klasse
ServicePoint-Member
System.Net-Namespace