ToolStripItem.OnCommandCanExecuteChanged(EventArgs) 方法

定义

注意

若要使用此预览 API,必须通过在项目文件中将 EnablePreviewFeatures 属性设置为 True,在项目中启用预览功能。 有关详细信息,请参阅 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 实例。

属性

适用于