ValidateRangeAttribute Class

Definition

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.Property | System.AttributeTargets.Field)]
public sealed class ValidateRangeAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
type ValidateRangeAttribute = class
    inherit ValidateEnumeratedArgumentsAttribute
Public NotInheritable Class ValidateRangeAttribute
Inherits ValidateEnumeratedArgumentsAttribute
Inheritance
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)

Applies to