Dil

Command.Action Özellik

Tanım

Komutu için öğesini CommandLineAction alır veya ayarlar. İşleyici, Komut çağrıldığında gerçekleştirilecek eylemi temsil eder.

public:
 property System::CommandLine::Invocation::CommandLineAction ^ Action { System::CommandLine::Invocation::CommandLineAction ^ get(); void set(System::CommandLine::Invocation::CommandLineAction ^ value); };
public System.CommandLine.Invocation.CommandLineAction? Action { get; set; }
member this.Action : System.CommandLine.Invocation.CommandLineAction with get, set
Public Property Action As CommandLineAction

Özellik Değeri

Açıklamalar

İşleyici oluşturmak için aşırı yüklemelerden birini SetAction(Action<ParseResult>) kullanın.

İşleyici belirtilmezse, bu Komutu çağıran komut satırı girişi için ayrıştırıcı hataları oluşturulur.

Şunlara uygulanır