HttpApplicationState.Count Eigenschap

Definitie

Hiermee haalt u het aantal objecten in de HttpApplicationState verzameling op.

public:
 virtual property int Count { int get(); };
public override int Count { get; }
member this.Count : int
Public Overrides ReadOnly Property Count As Integer

Waarde van eigenschap

Het aantal itemobjecten in de verzameling. De standaardwaarde is 0.

Voorbeelden

Het volgende voorbeeld wordt alleen uitgevoerd als het aantal objecten in de verzameling groter is dan vijf.

if (Application.Count > 5)
{
    //...
}
If Application.Count > 5 Then
   ' ...
End If

Van toepassing op