ValidateRangeAttribute Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines an attribute that uses minimum and maximum values to validate a cmdlet parameter argument (This attribute can also be used by Windows PowerShell functions.)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)] public sealed class ValidateRangeAttribute : ValidateEnumeratedArgumentsAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field) */ public final class ValidateRangeAttribute extends ValidateEnumeratedArgumentsAttribute
There are no established scenarios for explicitly creating a ValidateRangeAttribute object from within a cmdlet. The ValidateRangeAttribute object is created and used indirectly when the attribute is declared.
The cmdlet declares this attribute when implementing a cmdlet parameter. For more information about the syntax and parameters used to declare this attribute within a cmdlet, see ValidateRange Attribute Declaration.
System.Object
System.Attribute
System.Management.Automation.Internal.CmdletMetadataAttribute
System.Management.Automation.ValidateArgumentsAttribute
System.Management.Automation.ValidateEnumeratedArgumentsAttribute
System.Management.Automation.ValidateRangeAttribute
System.Attribute
System.Management.Automation.Internal.CmdletMetadataAttribute
System.Management.Automation.ValidateArgumentsAttribute
System.Management.Automation.ValidateEnumeratedArgumentsAttribute
System.Management.Automation.ValidateRangeAttribute
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.