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.
Validates that the length of each parameter argument's Length falls in the range specified by MinLength and MaxLength
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.Property | System.AttributeTargets.Field)]
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateLengthAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
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) |
Overridden by subclasses to implement the validation of each parameter argument (Inherited from ValidateEnumeratedArgumentsAttribute) |