Class MinMaxLengthAttribute
- Namespace
- DSharpPlus.Commands.ArgumentModifiers
- Assembly
- DSharpPlus.Commands.dll
Determines the minimum and maximum length that a parameter can accept.
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class MinMaxLengthAttribute : ParameterCheckAttribute
- Inheritance
-
objectAttributeMinMaxLengthAttribute
Constructors
- MinMaxLengthAttribute(int, int)
Determines the minimum and maximum length that a parameter can accept.
Properties
- MaxLength
The maximum length that this parameter can accept.
- MinLength
The minimum length that this parameter can accept.