Array.System.Collections.ICollection.Count プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Private ReadOnly Property System.Collections.ICollection.Count As Integer Implements ICollection.Count
Dim instance As Array Dim value As Integer
value = CType(instance, ICollection).Count
int ICollection.Count { get; }
private: virtual property int System.Collections.ICollection.Count { int get () sealed = ICollection::Count::get; }
J# では、明示的なインタフェースの実装は使用できますが、新規に宣言することはできません。
JScript では、明示的なインタフェースの実装は使用できますが、新規に宣言することはできません。
ICollection.Count と Length は常に等価です。
このプロパティ値を取得することは、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.0、1.1
.NET Compact Framework
サポート対象 : 2.0、1.0
関連項目
Array クラス
Array メンバ
System 名前空間
Array.Length プロパティ
GetLength