PropertyChangingEventHandler 委托

定义

表示将对 PropertyChanging 接口的 INotifyPropertyChanging 事件进行处理的方法。Represents the method that will handle the PropertyChanging event of an INotifyPropertyChanging interface.

public delegate void PropertyChangingEventHandler(System::Object ^ sender, PropertyChangingEventArgs ^ e);
public delegate void PropertyChangingEventHandler(object sender, PropertyChangingEventArgs e);
type PropertyChangingEventHandler = delegate of obj * PropertyChangingEventArgs -> unit
Public Delegate Sub PropertyChangingEventHandler(sender As Object, e As PropertyChangingEventArgs)

参数

sender
Object

事件源。The source of the event.

e
PropertyChangingEventArgs

包含事件数据的 PropertyChangingEventArgsA PropertyChangingEventArgs that contains the event data.

继承
PropertyChangingEventHandler

注解

PropertyChangingEventHandler.NET Framework 版本3.5 中引入。PropertyChangingEventHandler is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.

创建 PropertyChangingEventHandler 委托时,需要标识将处理该事件的方法。When you create a PropertyChangingEventHandler delegate, you identify the method that will handle the event. 若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。To associate the event with your event handler, add an instance of the delegate to the event. 除非移除了该委托,否则每当发生该事件时就会调用事件处理程序。The event handler is called whenever the event occurs, unless you remove the delegate. 有关事件处理程序委托的详细信息, 请参阅处理和引发事件For more information about event-handler delegates, see Handling and Raising Events.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于