Share via


ValidatorCollection.Count プロパティ

定義

コレクション内の参照の数を取得します。

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

プロパティ値

Int32

ページの ValidatorCollection 内の検証コントロールの数。

実装

次のコード例では、このプロパティの使用を Count 示します。

// Get 'Validators' of the page to myCollection.
ValidatorCollection myCollection = Page.Validators;
// Show the number of validators of the page.
int count = myCollection.Count;
' Get 'Validators' of the page to myCollection.
Dim myCollection As ValidatorCollection = Page.Validators
' Show the number of validators of the page.
Dim count As Integer = myCollection.Count

適用対象

こちらもご覧ください