System.Configuration.IntegerValidator.Validate C# (CSharp) Méthode

Validate() public méthode

public Validate ( object value ) : void
value object
Résultat void
        public override void Validate(object value) {
            ValidatorUtils.HelperParamValidation(value, typeof(int));

            ValidatorUtils.ValidateScalar((int)value,
                                            _minValue,
                                            _maxValue,
                                            _resolution,
                                            _flags == ValidationFlags.ExclusiveRange);
        }
    }

Usage Example

		public void Validate_Exclusive_fail3 ()
		{
			IntegerValidator v = new IntegerValidator (5000, 10000, true);
			v.Validate (7000);
		}
All Usage Examples Of System.Configuration.IntegerValidator::Validate