ChangePassword.OnBubbleEvent(Object, EventArgs) 方法

定义

确定是否将控件的事件 ChangePassword 传递给页面的 Web 服务器控件层次结构。

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

事件源。

e
EventArgs

EventArgs包含事件数据的对象。

返回

true 如果事件已被取消,则为否则,为 false. 默认值为 false

注解

ChangePassword 控件包含“更改密码”和“成功”视图的子控件。 嵌套控件中的事件(即,它们被发送到命名容器),而不是逐个引发事件的每个按钮。 命名容器反过来会引发使用参数值调用 ItemCommand 的泛型事件,以便确定哪个单个控件引发原始事件。 通过响应此单个事件,可以避免为单个子控件编写事件处理方法。

适用于

另请参阅