ValidateRangeAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class ValidateRangeAttribute sealed : System::Management::Automation::ValidateEnumeratedArgumentsAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateRangeAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ValidateRangeAttribute = class
inherit ValidateEnumeratedArgumentsAttribute
Public NotInheritable Class ValidateRangeAttribute
Inherits ValidateEnumeratedArgumentsAttribute
- Inheritance
-
ValidateRangeAttribute
- Attributes
Constructors
ValidateRangeAttribute(Object, Object) |
Initializes a new instance of the ValidateRangeAttribute class. |
ValidateRangeAttribute(ValidateRangeKind) |
Initializes a new instance of the ValidateRangeAttribute class. This constructor uses a predefined ValidateRangeKind. |
Properties
MaxRange |
Gets the attribute's maximum range. |
MinRange |
Gets the attribute's minimum range. |
Methods
Validate(Object, EngineIntrinsics) |
Calls ValidateElement in each element in the enumeration argument value. (Inherited from ValidateEnumeratedArgumentsAttribute) |
ValidateElement(Object) |
Abstract method to be overridden by subclasses, implementing the validation of each parameter argument. (Inherited from ValidateEnumeratedArgumentsAttribute) |