Menu.OnBubbleEvent(Object, EventArgs) 方法

定義

決定 Menu 控制項的事件是否要在頁面的使用者介面 (UI) 伺服器控制項階層架構中向上傳遞。Determines whether the event for the Menu control is passed up the page's user interface (UI) server control hierarchy.

protected:
 override bool OnBubbleEvent(System::Object ^ source, EventArgs ^ e);
protected override bool OnBubbleEvent (object source, EventArgs e);
override this.OnBubbleEvent : obj * EventArgs -> bool
Protected Overrides Function OnBubbleEvent (source As Object, e As EventArgs) As Boolean

參數

source
Object

事件的來源。The source of the event.

e
EventArgs

包含事件資料的 EventArgsAn EventArgs that contains event data.

傳回

Boolean

如果事件已取消,則為 true,否則為 falsetrue if the event has been canceled; otherwise, false. 預設為 falseThe default is false.

備註

這個成員會覆寫 OnBubbleEventThis member overrides OnBubbleEvent.

注意

這個方法主要由控制項開發人員用來擴充 Menu 控制項。This method is used primarily by control developers to extend the Menu control.

適用於