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
-
- Attribute
- ValidatorAttribute
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 |
---|---|
Attribute |
Constructors
Name | Summary |
---|---|
Int32 |
Initializes a new instance of the NAnt.Core.Attributes.Int32ValidatorAttribute
class.
|
Int32 |
Initializes a new instance of the NAnt.Core.Attributes.Int32ValidatorAttribute
class with the specified minimum and maximum values.
|
Properties
Methods
Name | Value | Summary |
---|---|---|
Validate |
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.
|