Dictionary.Count プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dictionary に格納されているキー/値ペアの数。

Dictionary の容量は、Dictionary が格納できる要素数になります。Count プロパティは、Dictionary に実際に格納されている要素の数です。
容量は、常に Count と同じか、それ以上になります。要素を追加しているときに Count が容量を超えた場合は、古い要素をコピーして新しい要素を追加する前に、内部配列を自動的に再割り当てすることによって、容量が増加します。

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Dictionary.Count プロパティのページへのリンク