Command.OnClick(EventArgs) 方法
定义
当用户激活控件时调用。Called when the user activates the control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
virtual void OnClick(EventArgs ^ e);
protected virtual void OnClick (EventArgs e);
abstract member OnClick : EventArgs -> unit
override this.OnClick : EventArgs -> unit
Protected Overridable Sub OnClick (e As EventArgs)
参数
注解
方法的默认实现将 OnClick 引发 Click 事件。The default implementation of the OnClick method raises the Click event. 继承类可以重写 OnClick 方法,以执行其他任务。Inheriting classes can override the OnClick method to perform other tasks.