IntegerValidator Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe IntegerValidator.
Surcharges
| Nom | Description |
|---|---|
| IntegerValidator(Int32, Int32) |
Initialise une nouvelle instance de la classe IntegerValidator. |
| IntegerValidator(Int32, Int32, Boolean) |
Initialise une nouvelle instance de la classe IntegerValidator. |
| IntegerValidator(Int32, Int32, Boolean, Int32) |
Initialise une nouvelle instance de la classe IntegerValidator. |
IntegerValidator(Int32, Int32)
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
Initialise une nouvelle instance de la classe IntegerValidator.
public:
IntegerValidator(int minValue, int maxValue);
public IntegerValidator(int minValue, int maxValue);
new System.Configuration.IntegerValidator : int * int -> System.Configuration.IntegerValidator
Public Sub New (minValue As Integer, maxValue As Integer)
Paramètres
Remarques
Ce IntegerValidator constructeur garantit que l’entier vérifié respecte à la fois une longueur minimale et maximale.
S’applique à
IntegerValidator(Int32, Int32, Boolean)
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
Initialise une nouvelle instance de la classe IntegerValidator.
public:
IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive);
public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive);
new System.Configuration.IntegerValidator : int * int * bool -> System.Configuration.IntegerValidator
Public Sub New (minValue As Integer, maxValue As Integer, rangeIsExclusive As Boolean)
Paramètres
- rangeIsExclusive
- Boolean
true pour spécifier que la plage de validation est exclusive. Inclusive signifie que la valeur à valider doit se trouver dans la plage spécifiée ; exclusive signifie qu’elle doit être inférieure au minimum ou au-dessus du maximum.
Exemples
L’exemple de code suivant montre comment utiliser le IntegerValidator constructeur. Cet exemple de code fait partie d’un exemple plus grand fourni pour la IntegerValidator classe.
// Create Validator for the range of 1 to 10 inclusive
int minIntVal = 1;
int maxIntVal = 10;
bool exclusive = false;
IntegerValidator integerValidator =
new IntegerValidator(minIntVal, maxIntVal, exclusive);
' Create Validator for the range of 1 to 10 inclusive
Dim minIntVal As Int32 = 1
Dim maxIntVal As Int32 = 10
Dim exclusive As Boolean = False
Dim validator As IntegerValidator = _
New IntegerValidator(minIntVal, maxIntVal, exclusive)
Remarques
Lors de la création d’une instance de la IntegerValidator classe, ce IntegerValidator constructeur vérifie à la fois les valeurs minimales et maximales Int32 , ainsi que si la plage de validation est exclusive. Lorsque le rangeIsExclusive paramètre est défini truesur , la Int32 valeur ne doit pas être comprise entre les valeurs de paramètre et minValue les maxValue valeurs de paramètre.
S’applique à
IntegerValidator(Int32, Int32, Boolean, Int32)
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
- Source:
- IntegerValidator.cs
Initialise une nouvelle instance de la classe IntegerValidator.
public:
IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive, int resolution);
public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive, int resolution);
new System.Configuration.IntegerValidator : int * int * bool * int -> System.Configuration.IntegerValidator
Public Sub New (minValue As Integer, maxValue As Integer, rangeIsExclusive As Boolean, resolution As Integer)
Paramètres
Exceptions
Remarques
La Int32 valeur en cours de validation doit être égale à la resolution valeur pour réussir la validation.