DesignerActionUIStateChangeEventHandler 委托

定义

表示将用来处理 DesignerActionUIStateChangeDesignerActionUIService 事件的方法。Represents the method that will handle the DesignerActionUIStateChange event of a DesignerActionUIService.

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

参数

sender
Object

引发事件的 ObjectThe Object that raised the event.

e
DesignerActionUIStateChangeEventArgs

事件特定的信息。The event-specific information.

继承
DesignerActionUIStateChangeEventHandler

注解

.NET Framework.NET Framework的事件模型基于事件委托, 该委托将事件与其处理程序连接。The event model in the .NET Framework.NET Framework is based on having an event delegate that connects an event with its handler. 若要引发DesignerActionUIStateChange事件, 需要两个元素:To raise a DesignerActionUIStateChange event, two elements are needed:

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

适用于

另请参阅