ValidateLengthAttribute(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 ValidateLengthAttribute class.
public:
ValidateLengthAttribute(int minLength, int maxLength);
public:
ValidateLengthAttribute(int minLength, int maxLength);
ValidateLengthAttribute(int minLength, int maxLength);
public ValidateLengthAttribute (int minLength, int maxLength);
new System.Management.Automation.ValidateLengthAttribute : int * int -> System.Management.Automation.ValidateLengthAttribute
Public Sub New (minLength As Integer, maxLength As Integer)
Parameters
- minLength
- Int32
Minimum required length.
- maxLength
- Int32
Maximum required length.
Exceptions
For invalid arguments.
If maxLength is less than minLength.