Dela via


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.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
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)

Applies to