ValidateCountAttribute Class

Definition

Validates that the parameter argument count is in the specified range

public ref class ValidateCountAttribute sealed : System::Management::Automation::ValidateArgumentsAttribute
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class ValidateCountAttribute : System.Management.Automation.ValidateArgumentsAttribute
type ValidateCountAttribute = class
    inherit ValidateArgumentsAttribute
Public NotInheritable Class ValidateCountAttribute
Inherits ValidateArgumentsAttribute
Inheritance
Attributes

Constructors

ValidateCountAttribute(Int32, Int32)

Initializes a new instance of the ValidateCountAttribute class

Properties

MaxLength

Gets the maximum length of this attribute

MinLength

Gets the minimum length of this attribute

Methods

Validate(Object, EngineIntrinsics)

Overridden by subclasses to implement the validation of the parameter arguments

(Inherited from ValidateArgumentsAttribute)

Applies to