HttpApplicationState.Count 属性

定义

获取集合中的 HttpApplicationState 对象数。

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

属性值

集合中的项对象数。 默认值为 0。

示例

仅当集合中的对象数超过 5 时,以下示例才会执行。

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

适用于