IPostBackDataHandler.RaisePostDataChangedEvent 方法

定义

当由某个类实现时,它用信号要求服务器控件通知 ASP.NET 应用程序该控件的状态已更改。When implemented by a class, signals the server control to notify the ASP.NET application that the state of the control has changed.

public:
 void RaisePostDataChangedEvent();
public void RaisePostDataChangedEvent ();
abstract member RaisePostDataChangedEvent : unit -> unit
Public Sub RaisePostDataChangedEvent ()

示例

下面的代码示例演示了服务器控件如何实现 RaisePostDataChangedEvent 方法。The following code example demonstrates how a server control can implement the RaisePostDataChangedEvent method.

public virtual void RaisePostDataChangedEvent() {
    OnTextChanged(EventArgs.Empty);
}

Public Overridable Sub RaisePostDataChangedEvent()
    OnTextChanged(EventArgs.Empty)
End Sub    
   

注解

RaisePostDataChangedEvent 方法为实现 IPostBackDataHandler 接口的服务器控件引发所有更改事件。The RaisePostDataChangedEvent method raises any change events for the server control that implements the IPostBackDataHandler interface.

适用于

另请参阅