次の方法で共有


DataKeyCollection.Count プロパティ

定義

コレクション内のアイテムの数を取得します。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

コレクション内の項目の数。

実装

注釈

Count プロパティを使用して、コレクション内の項目の数を決定します。 このプロパティは、通常、コレクションを反復処理して上限を決定するときに使用されます。

適用対象