System.ComponentModel (system.dll) | interface |
This interface, derived from IServiceProvider is
used to connect a Component to its
Container.
In addition to providing accessors for the host services, you can
find the Name of the component and whether the
component is currently being used in DesignMode.
public interface ISite : IServiceProvider {
// Public Instance Properties
public IComponent Component{get; }
public IContainer Container{get; }
public bool DesignMode{get; }
public string Name{set; get; }
}
Returned By
Component.Site, Container.CreateSite(
), IComponent.Site,
MarshalByValueComponent.Site,
MemberDescriptor.GetSite()
Passed To
Component.Site,
IComponent.Site,
MarshalByValueComponent.Site
|