ValidateLengthAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class ValidateLengthAttribute sealed : System::Management::Automation::ValidateEnumeratedArgumentsAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateLengthAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ValidateLengthAttribute = class
inherit ValidateEnumeratedArgumentsAttribute
Public NotInheritable Class ValidateLengthAttribute
Inherits ValidateEnumeratedArgumentsAttribute
- Inheritance
-
ValidateLengthAttribute
- Attributes
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. |
Methods
Validate(Object, EngineIntrinsics) |
Calls ValidateElement in each element in the enumeration argument value. (Inherited from ValidateEnumeratedArgumentsAttribute) |
ValidateElement(Object) |
Abstract method to be overridden by subclasses, implementing the validation of each parameter argument. (Inherited from ValidateEnumeratedArgumentsAttribute) |