ValidateRangeAttribute ValidateRangeAttribute ValidateRangeAttribute Class

Definition

Validates that each parameter argument falls in the range specified by MinRange and MaxRange

[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) ValidateRangeAttribute(Object, Object) ValidateRangeAttribute(Object, Object)

Initializes a new instance of the ValidateRangeAttribute class

ValidateRangeAttribute(ValidateRangeKind) ValidateRangeAttribute(ValidateRangeKind) ValidateRangeAttribute(ValidateRangeKind)

Initializes a new instance of the ValidateRangeAttribute class this constructor uses a predefined ranged

Properties

MaxRange MaxRange MaxRange

Gets the attribute's maximum range

MinRange MinRange MinRange

Gets the attribute's minimum range

Methods

Validate(Object, EngineIntrinsics) Validate(Object, EngineIntrinsics) Validate(Object, EngineIntrinsics) Inherited from ValidateEnumeratedArgumentsAttribute
ValidateElement(Object) ValidateElement(Object) ValidateElement(Object) Inherited from ValidateEnumeratedArgumentsAttribute

Applies to