共用方式為


ToolStripItem.OnRequestCommandExecute(EventArgs) 方法

定義

注意

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

如果內容允許,請在 的內容 OnClick(EventArgs) 中呼叫 以叫 Execute(Object) 用。

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

參數

e
EventArgs

EventArgs 的實例。

屬性

適用於