Command.Handler 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 ICommandHandler 命令的 。 處理程式代表叫用命令時將執行的動作。
public:
property System::CommandLine::Invocation::ICommandHandler ^ Handler { System::CommandLine::Invocation::ICommandHandler ^ get(); void set(System::CommandLine::Invocation::ICommandHandler ^ value); };
public System.CommandLine.Invocation.ICommandHandler? Handler { get; set; }
member this.Handler : System.CommandLine.Invocation.ICommandHandler with get, set
Public Property Handler As ICommandHandler
屬性值
備註
使用其中 SetHandler(Command, Action) 一個多載來建構處理程式。
如果未指定處理程式,則會針對叫用此命令的命令行輸入產生剖析器錯誤。