ValidateLengthAttribute Class

Definition

Validates that the length of each parameter argument's Length falls in the range specified by MinLength and MaxLength

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class ValidateLengthAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
Inheritance
Attributes

Inherited Members

System.Management.Automation.ValidateEnumeratedArgumentsAttribute

Constructors

ValidateLengthAttribute(Int32, Int32)

Initializes a new instance of the ValidateLengthAttribute class

Properties

MaxLength

Gets the attribute's maximum length

MinLength

Gets the attribute's minimum length