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