Hashtable.Count プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)

Hashtable格納されているキー/値ペアの数を取得します

名前空間: System.Collections
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Visual Basic (宣言)

Public Overridable ReadOnly Property Count As Integer

Visual Basic (使用法)

Dim instance As Hashtable Dim value As Integer

value = instance.Count

C#

public virtual int Count { get; }

C++

public: virtual property int Count { int get (); }

J#

/** @property */ public int get_Count ()

JScript

public function get Count () : int

プロパティ
Hashtable格納されているキー/値ペアの数。

解説解説

このプロパティ値を取得することは、O(1) 操作なります

プラットフォームプラットフォーム

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォーム中には.NET Framework によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.01.11.0
.NET Compact Framework
サポート対象 : 2.01.0

参照参照

関連項目
Hashtable クラス
Hashtable メンバ
System.Collections 名前空間