通过


Command.Options 属性

定义

获取命令的所有选项。

public:
 property System::Collections::Generic::IList<System::CommandLine::Option ^> ^ Options { System::Collections::Generic::IList<System::CommandLine::Option ^> ^ get(); };
public System.Collections.Generic.IList<System.CommandLine.Option> Options { get; }
member this.Options : System.Collections.Generic.IList<System.CommandLine.Option>
Public ReadOnly Property Options As IList(Of Option)

属性值

注解

此集合不包括 Option.Recursivetrue父命令的选项。 这些选项在当前命令下有效,但不出现在此集合中。

适用于