ValidateLengthAttribute ValidateLengthAttribute 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
type ValidateLengthAttribute = class
    inherit ValidateEnumeratedArgumentsAttribute
Public NotInheritable Class ValidateLengthAttribute
Inherits ValidateEnumeratedArgumentsAttribute
Inheritance
Attributes

Constructors

ValidateLengthAttribute(Int32, Int32) ValidateLengthAttribute(Int32, Int32) ValidateLengthAttribute(Int32, Int32)

Initializes a new instance of the ValidateLengthAttribute class

Properties

MaxLength MaxLength MaxLength

Gets the attribute's maximum length

MinLength MinLength MinLength

Gets the attribute's minimum length

Methods

Validate(Object, EngineIntrinsics) Validate(Object, EngineIntrinsics) Validate(Object, EngineIntrinsics) Inherited from ValidateEnumeratedArgumentsAttribute
ValidateElement(Object) ValidateElement(Object) ValidateElement(Object) Inherited from ValidateEnumeratedArgumentsAttribute

Applies to