2 implementations of Site
System.ComponentModel.Primitives (1)
System\ComponentModel\Component.cs (1)
62public virtual ISite? Site
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MarshalByValueComponent.cs (1)
54public virtual ISite? Site
3 writes to Site
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Container.cs (3)
72component.Site = newSite; 121site.Component.Site = null; 195component!.Site = null;
28 references to Site
System.ComponentModel.Primitives (3)
System\ComponentModel\ComponentCollection.cs (3)
25if (comp != null && comp.Site != null && comp.Site.Name != null && string.Equals(comp.Site.Name, name, StringComparison.OrdinalIgnoreCase))
System.ComponentModel.TypeConverter (23)
System\ComponentModel\ComponentResourceManager.cs (1)
132ISite? site = ((IComponent)value).Site;
System\ComponentModel\Container.cs (2)
45ISite? site = component.Site; 187ISite? site = component?.Site;
System\ComponentModel\MemberDescriptor.cs (1)
444protected static ISite? GetSite(object? component) => (component as IComponent)?.Site;
System\ComponentModel\NestedContainer.cs (5)
45if (Owner != null && Owner.Site != null) 47if (Owner.Site is INestedSite nestedOwnerSite) 53ownerName = Owner.Site.Name; 132if (owner != null && owner.Site != null) 134return owner.Site.DesignMode;
System\ComponentModel\ReferenceConverter.cs (1)
103ISite? site = comp.Site;
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
925ISite? site = comp?.Site;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
323if (comp != null && comp.Site != null) 325IDictionaryService? ds = comp.Site.GetService(typeof(IDictionaryService)) as IDictionaryService; 655if (component != null && component.Site != null) 657IExtenderListService? extenderList = component.Site.GetService(typeof(IExtenderListService)) as IExtenderListService; 666IContainer? cont = component.Site.Container; 849INestedSite? ns = comp?.Site as INestedSite;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
163ISite? site = comp?.Site;
System\ComponentModel\TypeDescriptor.cs (5)
643ISite? site = component.Site; 1275if (prov is IComponent component && component.Site != null) 1277name = component.Site.Name; 1949ISite? site = component?.Site; 2549ISite? site = component.Site;
System.Configuration.ConfigurationManager (2)
System\Configuration\ApplicationSettingsBase.cs (2)
66if (owner.Site != null) 68ISettingsProviderService providerService = owner.Site.GetService(typeof(ISettingsProviderService)) as ISettingsProviderService;