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 System.Collections.IEnumerable.
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)]
public sealed class VariadicArgumentAttribute : Attribute
- Inheritance
-
objectAttributeVariadicArgumentAttribute
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.