PropertyGeneratedEventHandler 委托

定义

表示用来处理 OnPropertyGenerated 事件的方法。Represents the method that will handle the OnPropertyGenerated event.

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

参数

sender
Object

事件源。The source of the event.

e
PropertyGeneratedEventArgs

事件的数据。The data for the event.

继承
PropertyGeneratedEventHandler

注解

创建 PropertyGeneratedEventHandler 委托时,需要标识将处理该事件的方法。When you create a PropertyGeneratedEventHandler 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.

扩展方法

GetMethodInfo(Delegate)

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

适用于