Base:
property
Site
System.Windows.Forms.Control.Site
4 writes to Site
System.Windows.Forms.Tests (4)
WebBrowserBaseTests.cs (4)
257Site = mockSite1.Object 263control.Site = mockSite1.Object; 275control.Site = mockSite2.Object; 280control.Site = null;
12 references to Site
System.Windows.Forms (7)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
794internal bool IsUserMode => Site is null || !DesignMode; 798if (Site.TryGetService(out IComponentChangeService? changeService)) 1140if (Site.TryGetService(out IDesignerHost? host) && host.RootComponent is ContainerControl rootContainerControl)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (3)
203ISite? site = _parent.Site; 227Debug.Assert(_parent.Site is null, "Parent is sited but we could not find IContainer!!!"); 273if (ctl.Site is not ISite site || site.Container is not IContainer container)
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
358if (Host.Site.TryGetService(out IComponentChangeService? changeService))
System.Windows.Forms.Tests (5)
System\Windows\Forms\WebBrowserTests.cs (1)
85Assert.Null(control.Site);
WebBrowserBaseTests.cs (4)
259Assert.Same(mockSite1.Object, control.Site); 264Assert.Same(mockSite1.Object, control.Site); 276Assert.Same(mockSite2.Object, control.Site); 281Assert.Null(control.Site);