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.
Validates that each parameter argument falls in the range specified by MinRange and MaxRange
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.Property | System.AttributeTargets.Field)]
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateRangeAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
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 ranged |
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) |
Overridden by subclasses to implement the validation of each parameter argument (Inherited from ValidateEnumeratedArgumentsAttribute) |