For example, a component is disposable, can be managed by a container, and offers a Site property. It obtains these characteristics by implementing IComponent, as shown here.
例如,组件是可处置的,它可以由容器托管,并提供了site属性。
The IComponent interface is the fundamental contract between the design-time environment and an element to be hosted on a design surface (such as the Visual Studio forms designer).
IComponent 接口是设计时环境和要在设计图面(例如,Visual Studio 窗体设计器)上承载的元素之间的基本协定。
应用推荐