共用方式為


ToolStripItem.OnCommandCanExecuteChanged(EventArgs) 方法

定義

注意

您必須在專案檔中將 EnablePreviewFeatures 屬性設定為 True,並啟用專案中的預覽功能,才能使用此預覽 API。 如需詳細資訊,請參閱 https://aka.ms/dotnet-preview-features

引發 CommandCanExecuteChanged 事件。

protected:
 virtual void OnCommandCanExecuteChanged(EventArgs ^ e);
[System.Runtime.Versioning.RequiresPreviewFeatures]
protected virtual void OnCommandCanExecuteChanged (EventArgs e);
protected virtual void OnCommandCanExecuteChanged (EventArgs e);
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
abstract member OnCommandCanExecuteChanged : EventArgs -> unit
override this.OnCommandCanExecuteChanged : EventArgs -> unit
abstract member OnCommandCanExecuteChanged : EventArgs -> unit
override this.OnCommandCanExecuteChanged : EventArgs -> unit
Protected Overridable Sub OnCommandCanExecuteChanged (e As EventArgs)

參數

e
EventArgs

EventArgs 的實例。

屬性

適用於