Method GetCommandsByCategory
GetCommandsByCategory(string)
Gets all commands in the specified category.
public static IReadOnlyList<Command> GetCommandsByCategory(string category)
Parameters
categorystringThe category name.
Returns
- IReadOnlyList<Command>
A read-only collection of commands in the specified category, or an empty collection if the category does not exist.
Exceptions
- ArgumentNullException
Thrown when
categoryisnull.