Name
ISite
Synopsis
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
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.