ValidatorCollection.Count-Eigenschaft
Ruft die Anzahl der Verweise in der Auflistung ab.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Syntax
'Declaration
Public ReadOnly Property Count As Integer
'Usage
Dim instance As ValidatorCollection
Dim value As Integer
value = instance.Count
public int Count { get; }
public:
virtual property int Count {
int get () sealed;
}
/** @property */
public final int get_Count ()
public final function get Count () : int
Eigenschaftenwert
Die Anzahl der Validierungssteuerelemente in der ValidatorCollection dieser Seite.
Beispiel
Im folgenden Codebeispiel wird die Verwendung der Count-Eigenschaft veranschaulicht.
' 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
// 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.
ValidatorCollection myCollection = get_Validators();
// Show the number of validators of the page.
int count = myCollection.get_Count();
Plattformen
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ValidatorCollection-Klasse
ValidatorCollection-Member
System.Web.UI-Namespace