Share via


ValidateCountAttribute(Int32, Int32) Constructor

Definition

Initializes a new instance of the ValidateCountAttribute class.

public:
 ValidateCountAttribute(int minLength, int maxLength);
public:
 ValidateCountAttribute(int minLength, int maxLength);
 ValidateCountAttribute(int minLength, int maxLength);
public ValidateCountAttribute (int minLength, int maxLength);
new System.Management.Automation.ValidateCountAttribute : int * int -> System.Management.Automation.ValidateCountAttribute
Public Sub New (minLength As Integer, maxLength As Integer)

Parameters

minLength
Int32

Minimum number of values required.

maxLength
Int32

Maximum number of values required.

Exceptions

For invalid arguments.

if minLength is greater than maxLength

Applies to