Compartilhar via


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.Field | System.AttributeTargets.Property)]
public sealed class ValidateCountAttribute : System.Management.Automation.ValidateArgumentsAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
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)

Verify that the value of arguments is valid.

(Inherited from ValidateArgumentsAttribute)

Applies to