IControlAdapter.HandlePostBackEvent(String) IControlAdapter.HandlePostBackEvent(String) IControlAdapter.HandlePostBackEvent(String) IControlAdapter.HandlePostBackEvent(String) Method

定义

如果已处理事件,则返回 trueReturns true if the event was handled. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 bool HandlePostBackEvent(System::String ^ eventArgument);
public bool HandlePostBackEvent (string eventArgument);
abstract member HandlePostBackEvent : string -> bool
Public Function HandlePostBackEvent (eventArgument As String) As Boolean

参数

eventArgument
String String String String

事件的名称。Name of the event.

返回

如果处理了回发事件,则为 true;否则为 falsetrue if the postback event was handled; otherwise, false.

注解

接收回发事件通知,检查事件是否为特定的适配器时,将由控件调用此方法。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 IPostBackEventHandler 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.

适用于

另请参阅