XhtmlObjectListAdapter.HandlePostBackEvent(String) 方法

定义

如果已处理事件,则返回 trueReturns true if the event was handled. 此 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.

public:
 override bool HandlePostBackEvent(System::String ^ eventArgument);
public override bool HandlePostBackEvent (string eventArgument);
override this.HandlePostBackEvent : string -> bool
Public Overrides Function HandlePostBackEvent (eventArgument As String) As Boolean

参数

eventArgument
String

事件的名称。Name of the event.

返回

Boolean

如果处理过此事件,则为 true;否则为 falsetrue if the event was handled; otherwise false.

例外

回发数据无效。the postback data is invalid.

注解

此方法在接收回发事件通知时由控件调用,以检查事件是否特定于适配器。This method is called by a control when it receives a postback event notification, to check whether the event is adapter-specific. 如果控件实现 IPostBackEventHandler 方法并接收回发事件,则 RaisePostBackEvent 会调用控件适配器的方法。If the control implements the IPostBackEventHandler method and receives a postback event, the RaisePostBackEvent method of the control adapter is called. 如果发送到控件的事件可能因目标设备而异,则此方法的控件实现必须调用 HandlePostBackEvent 控件适配器的方法。If events sent to the control can vary depending on the target device, the control implementation of this method must call the HandlePostBackEvent method of the control adapter.

此方法返回 truefalse ,指示设备适配器是否已处理事件。This method returns true or false, indicating whether the device adapter handled the event. false默认情况下,它返回。It returns false by default.

适用于