ValidateRangeAttribute Constructors

Definition

Overloads

ValidateRangeAttribute(ValidateRangeKind)

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

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

public:
 ValidateRangeAttribute(System::Management::Automation::ValidateRangeKind kind);
public ValidateRangeAttribute (System.Management.Automation.ValidateRangeKind kind);
new System.Management.Automation.ValidateRangeAttribute : System.Management.Automation.ValidateRangeKind -> System.Management.Automation.ValidateRangeAttribute
Public Sub New (kind As ValidateRangeKind)

Parameters

Applies to

ValidateRangeAttribute(Object, Object)

Initializes a new instance of the ValidateRangeAttribute class

public:
 ValidateRangeAttribute(System::Object ^ minRange, System::Object ^ maxRange);
public:
 ValidateRangeAttribute(Platform::Object ^ minRange, Platform::Object ^ maxRange);
 ValidateRangeAttribute(winrt::Windows::Foundation::IInspectable const & minRange, winrt::Windows::Foundation::IInspectable const & maxRange);
public ValidateRangeAttribute (object minRange, object maxRange);
new System.Management.Automation.ValidateRangeAttribute : obj * obj -> System.Management.Automation.ValidateRangeAttribute
Public Sub New (minRange As Object, maxRange As Object)

Parameters

minRange
Object

Minimum value of the range allowed.

maxRange
Object

Maximum value of the range allowed.

Exceptions

for invalid arguments

if maxRange has a differnet type than minRange if maxRange is smaller than minRange if maxRange, minRange are not IComparable

Applies to