public interface IConsoleCommandContextDescribes one invocation of a registered console command.
Members
CommandNameGets the registered name of the command being run.propertyArgumentsGets the arguments entered after the command name. Quoted text such as "hello world" is returned as one argument.propertyUsageGets the command's full usage text.propertyWriteLineWrites a line to the CMAPI console.methodWriteUsageWrites the command's usage in the standard Usage: ... format.methodCommandName
propertystring CommandNameGets the registered name of the command being run.
Arguments
propertyIReadOnlyList<string> ArgumentsGets the arguments entered after the command name. Quoted text such as "hello world" is returned as one argument.
The outer quotes are removed. Use
\" inside a quoted argument to include a literal quotation mark.Usage
propertystring UsageGets the command's full usage text.
WriteLine
methodvoid WriteLine(string message = "")Writes a line to the CMAPI console.
WriteUsage
methodvoid WriteUsage()Writes the command's usage in the standard Usage: ... format.