ValidateRangeAttribute Class

Definition

Validates that each parameter argument falls in the range specified by MinRange and MaxRange

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class ValidateRangeAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
Inheritance
Attributes

Inherited Members

System.Management.Automation.ValidateEnumeratedArgumentsAttribute

Constructors

ValidateRangeAttribute(Object, Object)

Initializes a new instance of the ValidateRangeAttribute class

Properties

MaxRange

Gets the attribute's maximum range

MinRange

Gets the attribute's minimum range