Although sometimes you may want an event that can only be raised by the base class, most of the time, you should enable the derived class to invoke base class events.
虽然有时您可能会想要使用只能由基底类别所引发的事件,但是在多数情形下,您应该启用衍生类别来叫用基底类别事件。
A class member, method, field, property, or event, on a derived class that is overriding a virtual member of the base class can declare that member as sealed.
若类别成员、方法、栏位、属性或事件是位于覆写基底类别虚拟成员的衍生类别上,则可宣告为密封。
To do this, you can create a protected invoking method in the base class that wraps the event.
为此,您可以在包含该事件的基类中创建一个受保护的调用方法。
Prefer overriding the base class implementation to attaching an event handler.
优先考虑重写基类的实现,而不是事件句柄。
Provides a base class for classes that are used by event sources to pass event argument information.
提供了一个基类,其派生类可由事件源用来传递事件参数信息。
In a derived class, be sure to call the base class implementation of this method so that registered delegates receive the event.
在派生类中,应确保调用此方法的基类实现,以使注册的委托收到该事件。
In a derived class, be sure to call the base class's implementation of this method so that registered delegates receive the event.
在派生类中,应确保调用此方法的基类实现,以使注册的委托可接收到该事件。
This error most often arises when you have tried to connect an event to a control that is inherited from a base class.
当尝试将某个事件连接到从基类继承的控件时,最常出现此错误。
When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.
在衍生类别中覆写时,会提供一种特定型别的方式来呼叫事件处理常式,透过基底实作增进效率。
When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.
在衍生类别中覆写时,会提供一种特定型别的方式来呼叫事件处理常式,透过基底实作增进效率。
应用推荐