CatalogZoneBase.RaisePostBackEvent(String) 方法

定义

执行与某一区域谓词关联的操作,或引发发布回服务器的事件。Carries out the actions associated with one of the zone verbs, or raises an event that posts back to the server.

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

参数

eventArgument
String

包含该事件参数的 StringA String that contains the argument for the event.

注解

如果 eventArgument 参数数据指示已单击添加谓词或关闭谓词,则 RaisePostBackEvent 方法会执行与谓词关联的操作,例如向 WebPart 页面添加控件或关闭目录。If the eventArgument parameter data indicates that the add verb or the close verb was clicked, then the RaisePostBackEvent method carries out the action associated with the verb, such as adding WebPart controls to the page, or closing the catalog. 如果出于任何其他原因调用该方法,则将调用基方法来向服务器引发回发事件。If the method is being called for any other reason, then the base method is invoked to raise a postback event to the server.

继承者说明

如果要将自定义谓词添加到 CatalogZoneBase 区域,则需要重写方法, RaisePostBackEvent(String) 以便在用户单击自定义谓词时处理事件。If you want to add custom verbs to a CatalogZoneBase zone, you need to override the RaisePostBackEvent(String) method to handle the event if a user clicks a custom verb.

适用于

另请参阅