• The following example shows an event delegate declaration.

    以下范例所示为事件委派的宣告。

    youdao

  • Provided as a convenient direct method for removing an event delegate.

    提供做为方便的指示方法,以移除事件委派。

    youdao

  • When overridden in a derived class, gets a value indicating whether the event delegate is a multicast delegate.

    在衍生类别中覆写时,取得指示事件委派是否为多点传送委派的值。

    youdao

  • Note that event properties are slower than event fields, as each event delegate must be retrieved before it can be invoked.

    请注意,事件属性要比事件字段慢,这是因为必须先检索每个事件委托,然后才能调用它。

    youdao

  • Event accessors are methods you define to allow event delegate instances to be added or removed from the storage data structure.

    事件访问器是您定义的方法,用以允许事件委托实例添加到存储数据结构或从存储数据结构移除。

    youdao

  • If your class raises multiple events and you program these as described in Raising an event, the compiler generates one field per event delegate instance.

    如果您的类引发多个事件,并且您按引发事件中的说明对这些事件进行编程,编译器将为每个事件委托实例生成一个字段。

    youdao

  • The message informs the delegate of an event that the delegating object is about to handle or has just handled.

    消息通知事件的委托方法,委托对象将要处理或已经处理。

    youdao

  • The Elapsed event must be connected to an event handler that matches the ElapsedEventHandler delegate.

    时间片消失事件必须与一个同ElapsedEventHandler委托像匹配的事件处理函数相连接。

    youdao

  • Several different methods are defined on the CPTableView's delegate. Each of these corresponds to an event that can be raised by the table.

    CPTableView的代理上定义了几个方法,每个方法都对应一个数据表可以发起的事件。

    youdao

  • By default, the backing-store field for an event declaration is a multicast delegate that serially combines all the event handlers.

    默认情况下,事件声明的后备存储字段是一个依次组合所有事件处理程序的多路广播委托。

    youdao

  • 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.

    使用委托的绑定机制是动态的:委托可在运行时绑定到签名与事件处理程序的签名相匹配的任何方法上。

    youdao

  • At run time, the delegate forwards calls to the appropriate event handler.

    在运行时,委托将各种调用转发到相应的事件处理程序。

    youdao

  • The event handler must have the same method signature as the delegate declared for the event.

    事件处理程序必须具有与为事件声明的委托相同的方法签名。

    youdao

  • When the event is raised, the delegate instance and its associated event handler method is called.

    引发该事件时,就会调用该委托实例及其关联的事件处理程序方法。

    youdao

  • When an event is recorded by the application, the control raises the event by invoking the delegate for that event.

    当应用程序记录某个事件时,控件通过调用该事件的委托引发事件。

    youdao

  • For example, a button-click event and a menu-command-click event can both invoke the same delegate, which then calls a single method to handle these separate events the same way.

    例如,单击按钮事件和单击菜单命令事件都能调用同一委托,然后该委托调用单个方法以相同方式处理各个事件。

    youdao

  • To associate the event with your event handler, add an instance of the delegate to the event.

    若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。

    youdao

  • To implement multiple event properties in a class, the class must internally store and maintain the delegate defined for each event.

    要在一个类中实现多个事件属性,该类必须在内部存储和维护为每个事件定义的委托。

    youdao

  • Returns the method used to remove an event handler delegate from the event source.

    返回用于从事件源中移除事件处理程序委托的方法。

    youdao

  • The event property accessors use the predefined key for the event property to add and remove instances from the delegate collection.

    事件属性访问器使用事件属性的预定义键在委托集合中添加和从委托集合中移除实例。

    youdao

  • 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.

    调用层次结构不会查找方法组引用,这些引用包含将方法添加为事件处理程序或将方法分配给委托的位置。

    youdao

  • An example where this is useful is when your object is serializable and you have an event that is handled by a non-serializable delegate object.

    一个展示了自定义事件访问器有用一面的例子,就是当你的对象是可序列化的、并且你有一个可以被一个不可序列化的委托对象处理的事件的时候。

    youdao

  • The delegate enables other classes to register for event notification by specifying a handler method.

    委托允许其他类通过指定处理程序方法来注册事件通知。

    youdao

  • This strategy means that the control does not need to maintain a list of target objects for event notification-the delegate handles all registration and notification.

    此策略意味着控件不需要维护事件通知的目标对象列表——委托可处理所有的注册和通知。

    youdao

  • 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.

    只要事件处理程序和事件签名匹配,就可以将调用已公开方法的该事件处理程序(委托类型)添加到任何事件。

    youdao

  • When the event occurs, the delegate calls the bound method.

    当发生事件时,委托调用绑定的方法。

    youdao

  • To unsubscribe in this scenario, it is necessary to go back to the code where you subscribe to the event, store the anonymous method in a delegate variable, and then add the delegate to the event.

    若要在这种情况下取消订阅,必须回到订阅该事件的程序码,并将此匿名方法储存到委派变数内,然后再将该委派加入此事件中。

    youdao

  • 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.

    通过维护事件的已注册事件处理程序列表,委托为引发事件的类担当事件发送器的角色。

    youdao

  • Until you unsubscribe from an event, the multicast delegate that underlies the event in the publishing object has a reference to the delegate that encapsulates the subscriber's event handler.

    取消订阅事件之前,发行物件内事件底层的多点传送委派会参考封装订阅者之事件处理常式的委派。

    youdao

  • Until you unsubscribe from an event, the multicast delegate that underlies the event in the publishing object has a reference to the delegate that encapsulates the subscriber's event handler.

    取消订阅事件之前,发行物件内事件底层的多点传送委派会参考封装订阅者之事件处理常式的委派。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定