語言

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 事件。

適用於

另請參閱