若要实作介面成员,对应的类别成员必须是公用、非静态,而且具有与介面成员相同的名称和签章。
To implement an interface member, the corresponding member on the class must be public, non-static, and have the same name and signature as the interface member.
下列范例会示范如何处理一个较不常见的状况,也就是您的类别继承自两个或多个介面,而每一个介面都有一个同名的事件。
The following example shows how to handle the less-common situation in which your class inherits from two or more interfaces and each interface has an event with the same name.
实体类别随即建立并出现在设计介面上。
An entity class is created and appears on the design surface.
应用推荐