Int32ValidatorAttribute Class

Summary

Indicates that property should be able to be converted into a int within the given range.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Attributes
Base Types
graph BT Type-->Base0["ValidatorAttribute"] click Base0 "/api/NAnt.Core.Attributes/ValidatorAttribute" Base0-->Base1["Attribute"] Type["Int32ValidatorAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class Int32ValidatorAttribute : ValidatorAttribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
Int32ValidatorAttribute() Initializes a new instance of the NAnt.Core.Attributes.Int32ValidatorAttribute class.
Int32ValidatorAttribute(int, int) Initializes a new instance of the NAnt.Core.Attributes.Int32ValidatorAttribute class with the specified minimum and maximum values.

Properties

Name Value Summary
Base int
The base of the number to validate, which must be 2, 8, 10, or 16.
MaxValue int
Gets or sets the maximum value.
MinValue int
Gets or sets the minimum value.

Methods

Name Value Summary
Validate(Object) void
Checks whether the specified value can be converted to an int and whether the value lies within the range defined by the NAnt.Core.Attributes.Int32ValidatorAttribute.MinValue and NAnt.Core.Attributes.Int32ValidatorAttribute.MaxValue properties.