Compartir a través de


ValidateRangeAttribute Constructors

Definition

Overloads

ValidateRangeAttribute(ValidateRangeKind)

Initializes a new instance of the ValidateRangeAttribute class. This constructor uses a predefined ValidateRangeKind.

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.

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 different type than minRange if maxRange is smaller than minRange if maxRange, minRange are not IComparable

Applies to