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