Freigeben über


ValidateLengthAttribute(Int32, Int32) Constructor

Definition

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.

Applies to