To be a site, a class must implement the ISite interface. Gets the component associated with the ISite when implemented by a class. Gets the IContainer associated with the ISite when implemented by a class.What is the purpose of an Isite?
Sites bind a Component to a Container and enable communication between them, as well as provide a way for the container to manage its components. Sites can also serve as a repository for container-specific, per-component information, such as the component name. To be a site, a class must implement the ISite interface.Which namespace imports the Isite and icomponent interfaces?
' 'This example imports the System, System.ComponentModel, and System.Collections 'namespaces. 'This code segment implements the ISite and IComponent interfaces. 'The implementation of the IContainer interface can be seen in the documentation 'of IContainer.