共用方式為


ToolStripItem.OnCommandChanged(EventArgs) 方法

定義

注意

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

引發 CommandChanged 事件。

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

參數

e
EventArgs

EventArgs 的實例。

屬性

適用於