3 implementations of RemoveService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
215
public void
RemoveService
(Type serviceType)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1279
void IServiceContainer.
RemoveService
(Type serviceType)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
132
void IServiceContainer.
RemoveService
(Type serviceType)
18 references to RemoveService
DemoConsole (4)
DesignSurfaceExtended.cs (4)
30
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
43
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
56
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
69
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerHost.cs (2)
460
sc.
RemoveService
(t);
1282
sc.
RemoveService
(serviceType);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
134
SiteServiceContainer.
RemoveService
(serviceType);
System\ComponentModel\Design\ServiceContainerExtensions.cs (1)
14
public static void RemoveService<T>(this IServiceContainer serviceContainer) => serviceContainer.
RemoveService
(typeof(T));
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\DesignerActionServiceTests.cs (6)
258
.Setup(h => h.
RemoveService
(typeof(DesignerActionService)));
273
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Once());
277
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(2));
289
.Setup(h => h.
RemoveService
(typeof(DesignerActionService)));
304
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount));
308
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount * 2));
System\ComponentModel\Design\DesignerHostTests.cs (2)
2891
host.
RemoveService
(typeof(object));
2918
Assert.Throws<ObjectDisposedException>(() => host.
RemoveService
(typeof(object)));
System\Windows\Forms\Design\ToolStripInSituServiceTests.cs (2)
119
_mockDesignerHost.Verify(dh => dh.
RemoveService
(typeof(ISupportInSituService)), Times.Once);
136
_mockDesignerHost.Verify(dh => dh.
RemoveService
(typeof(ISupportInSituService)), Times.Never);