다음을 통해 공유


ValidatorCollection.Count 속성

정의

컬렉션의 참조 수를 가져옵니다.

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

속성 값

페이지의 유효성 검사 컨트롤 수입니다 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

적용 대상

추가 정보