Class MaximumLengthAttribute
Sets a maximum value for this slash command option. Only valid for System.String parameters.
Inheritance
System.Object
System.Attribute
MaximumLengthAttribute
Namespace: DisCatSharp.ApplicationCommands.Attributes
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class MaximumLengthAttribute : Attribute
Constructors
| Improve this Doc View SourceMaximumLengthAttribute(Int32)
Sets a maximum value for this slash command option. Only valid for System.String parameters.
Declaration
public MaximumLengthAttribute(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |
Properties
| Improve this Doc View SourceValue
The value.
Declaration
public int? Value { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |