Class MinLengthAttribute
Sets the minimum length allowed for a string type parameter.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class MinLengthAttribute : Attribute
Constructors
| Improve this Doc View SourceMinLengthAttribute(Int32)
Sets the minimum length allowed for a string type parameter.
Declaration
public MinLengthAttribute(int length)
Parameters
Type | Name | Description |
---|---|---|
Int32 | length | Minimum string length allowed. |
Properties
| Improve this Doc View SourceLength
Gets the minimum length allowed for a string type parameter.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
Int32 |