返回用于从事件源中移除事件处理程序委托的方法。
Returns the method used to remove an event handler delegate from the event source.
例如,处理在某一类上定义的事件的事件处理程序委托不应嵌套在该类中。
For example, an event-handler delegate that handles an event defined on a class should not be nested in the class.
通过在应用程序委托类处理这些事件,你就能够响应它们。
By handling these events in your application delegate class, you have an opportunity to respond to them.
默认情况下,事件声明的后备存储字段是一个依次组合所有事件处理程序的多路广播委托。
By default, the backing-store field for an event declaration is a multicast delegate that serially combines all the event handlers.
通过维护事件的已注册事件处理程序列表,委托为引发事件的类担当事件发送器的角色。
A delegate ACTS as an event dispatcher for the class that raises the event by maintaining a list of registered event handlers for the event.
使用对该事件处理程序方法的一个引用创建委托的一个实例。
Create an instance of the delegate, using a reference to the event handler method.
委托允许其他类通过指定处理程序方法来注册事件通知。
The delegate enables other classes to register for event notification by specifying a handler method.
在运行时,委托将各种调用转发到相应的事件处理程序。
At run time, the delegate forwards calls to the appropriate event handler.
调用层次结构不会查找方法组引用,这些引用包含将方法添加为事件处理程序或将方法分配给委托的位置。
Call Hierarchy does not find method group references, which includes places where a method is added as an event handler or is assigned to a delegate.
使用委托的绑定机制是动态的:委托可在运行时绑定到签名与事件处理程序的签名相匹配的任何方法上。
The binding mechanism used with delegates is dynamic: a delegate can be bound at run time to any method whose signature matches that of the event handler.
只要事件处理程序和事件签名匹配,就可以将调用已公开方法的该事件处理程序(委托类型)添加到任何事件。
An event handler, a delegate type, that invokes the exposed method can be added to any event as long as the handler and event signatures match.
事件处理程序必须具有与为事件声明的委托相同的方法签名。
The event handler must have the same method signature as the delegate declared for the event.
引发该事件时,就会调用该委托实例及其关联的事件处理程序方法。
When the event is raised, the delegate instance and its associated event handler method is called.
若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。
To associate the event with your event handler, add an instance of the delegate to the event.
引发事件时会通过委托调用事件处理程序。
Raising an event invokes the event handler through a delegate.
引发事件时会通过委托调用事件处理程序。
Raising an event invokes the event handler through a delegate.
应用推荐