Class LessThanOrEqualToAttribute
- Namespace
- Acuit.Pinpoint.Common.Validation
- Assembly
- Acuit.Pinpoint.Common.dll
Used for specifying a greater-than validation constraint.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class LessThanOrEqualToAttribute : CompareToAttribute, _Attribute
- Inheritance
-
LessThanOrEqualToAttribute
- Implements
- Inherited Members
Constructors
LessThanOrEqualToAttribute(double)
Constructor that takes a double comparison value.
public LessThanOrEqualToAttribute(double comparisonValue)
Parameters
comparisonValuedoubleThe comparison value.
LessThanOrEqualToAttribute(int)
Constructor that takes an integer comparison value.
public LessThanOrEqualToAttribute(int comparisonValue)
Parameters
comparisonValueintThe comparison value.
LessThanOrEqualToAttribute(Type, string)
Allows for specifying a comparison for arbitrary types. The value string will be converted to the target type.
public LessThanOrEqualToAttribute(Type operandType, string comparisonValue)
Parameters
operandTypeTypeThe type of the range parameters. Must implement IComparable.
comparisonValuestringThe comparison value.