Class CommandArgument
Represents a command argument.
Inheritance
System.Object
CommandArgument
Namespace: DisCatSharp.CommandsNext
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public sealed class CommandArgument
Properties
| Improve this Doc View SourceCustomAttributes
Gets the custom attributes attached to this argument.
Declaration
public IReadOnlyCollection<Attribute> CustomAttributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.Attribute> |
DefaultValue
Gets this argument's default value.
Declaration
public object DefaultValue { get; }
Property Value
Type | Description |
---|---|
System.Object |
Description
Gets this argument's description.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
IsCatchAll
Gets whether this argument catches all remaining arguments.
Declaration
public bool IsCatchAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOptional
Gets whether this argument is optional.
Declaration
public bool IsOptional { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets this argument's name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets this argument's type.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |