Cache.Count プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
名前空間: System.Web.Caching
アセンブリ: System.Web (system.web.dll 内)
構文
Public ReadOnly Property Count As Integer
Dim instance As Cache Dim value As Integer
value = instance.Count
public: property int Count { int get (); }
/** @property */ public int get_Count ()
public function get Count () : int
このプロパティは、アプリケーションのパフォーマンスを監視する場合や、ASP.NET のトレース機能を使用する場合に役立ちます。
Count プロパティの値を取得して文字列に変換し、この文字列を Label Web サーバー コントロール (Label1) の Text プロパティに設定する例を次に示します。
' Convert the Count property to a string
' and display its value in a Label server control.
Label1.Text = "The number of items in the cache:"
- Cache.Count.ToString()
// Convert the Count property to a string // and display its value in a Label server control. Label1.Text = "The number of items in the cache:" + Cache.Count.ToString();
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。