次の方法で共有


Array.System.Collections.ICollection.Count プロパティ

メモ : この名前空間、クラス、およびメンバは、.NET Framework Version 1.1 だけでサポートされています。

Array に格納されている要素の数を取得します。

Private ReadOnly Property Count As Integer Implements _   ICollection.Count
[C#]
int ICollection.Count {get;}
[C++]
private: __property int
   System::Collections::ICollection::get_Count();
[JScript]
private function get ICollection.Count() : int;

プロパティ値

Array に格納されている要素の数。

実装

ICollection.Count

解説

ICollection.CountLength は常に等価です。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

Array クラス | Array メンバ | System 名前空間 | Length | GetLength