HttpApplicationState.Count-Eigenschaft
Ruft die Anzahl der Objekte in der HttpApplicationState-Auflistung ab.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property Count As Integer
'Usage
Dim instance As HttpApplicationState
Dim value As Integer
value = instance.Count
public override int Count { get; }
public:
virtual property int Count {
int get () override;
}
/** @property */
public int get_Count ()
public override function get Count () : int
Eigenschaftenwert
Die Anzahl der Elementobjekte in der Auflistung. Der Standardwert ist 0.
Beispiel
Das folgende Beispiel wird nur ausgeführt, wenn die Anzahl der Objekte in der Auflistung größer als fünf ist.
If Application.Count > 5 Then
' ...
End If
if (Application.Count > 5)
{
//...
}
if (get_Application().get_Count() > 5) {
//...
}
if(Application.Count > 5){
// ...
}
Plattformen
Windows 98, Windows 2000 SP4, 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
Siehe auch
Referenz
HttpApplicationState-Klasse
HttpApplicationState-Member
System.Web-Namespace