Class VariadicArgumentAttribute
- Namespace
- DSharpPlus.Commands.ArgumentModifiers
- Assembly
- DSharpPlus.Commands.dll
Specifies that a parameter can accept multiple arguments. This attribute is only valid on parameters of type IEnumerable.
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)]
public sealed class VariadicArgumentAttribute : Attribute
- Inheritance
-
VariadicArgumentAttribute
Constructors
- VariadicArgumentAttribute(int, int)
The number of arguments that this parameter can accept.
Properties
- MaximumArgumentCount
The maximum number of arguments that this parameter can accept.
- MinimumArgumentCount
The minimum number of arguments that this parameter can accept.