ImageButton.RaisePostBackEvent(String) 方法

定义

在控件发回服务器时引发 ImageButton 该控件的事件。

protected:
 virtual void RaisePostBackEvent(System::String ^ eventArgument);
protected virtual void RaisePostBackEvent(string eventArgument);
abstract member RaisePostBackEvent : string -> unit
override this.RaisePostBackEvent : string -> unit
Protected Overridable Sub RaisePostBackEvent (eventArgument As String)

参数

eventArgument
String

事件的自变量。

注解

从控件派生自定义类RaisePostBackEvent时,该ImageButton成员主要由控件开发人员使用。

当控件被单击时,此方法在 ImageButton 内部使用,以引发 Click 事件,如果已定义,则为 Command 事件。

适用于

另请参阅