ValidateCountAttribute(Int32, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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