Kieli

Command.Options Property

Definition

Gets all of the options for the command.

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

Property Value

Remarks

This collection doesn't include options on parent commands where Option.Recursive is true. Those options are valid under the current command but don't appear in this collection.

Applies to