HelpExtensions.Names Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Names(Command) |
Get all names for a command, including the primary name and all aliases |
| Names(Option) |
Get all names for an option, including the primary name and all aliases |
Names(Command)
- Source:
- HelpGenerationExtensions.cs
Get all names for a command, including the primary name and all aliases
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::String ^> ^ Names(System::CommandLine::Command ^ command);
public static string[] Names(this System.CommandLine.Command command);
static member Names : System.CommandLine.Command -> string[]
<Extension()>
Public Function Names (command As Command) As String()
Parameters
- command
- Command
Returns
Applies to
Names(Option)
- Source:
- HelpGenerationExtensions.cs
Get all names for an option, including the primary name and all aliases
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::String ^> ^ Names(System::CommandLine::Option ^ option);
public static string[] Names(this System.CommandLine.Option option);
static member Names : System.CommandLine.Option -> string[]
<Extension()>
Public Function Names (option As Option) As String()
Parameters
- option
- Option