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

適用於

另請參閱