3 implementations of RemoveService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
215public void RemoveService(Type serviceType)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1289void IServiceContainer.RemoveService(Type serviceType)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
132void IServiceContainer.RemoveService(Type serviceType)
16 references to RemoveService
DesignSurfaceExt (4)
DesignSurfaceExt.cs (4)
37serviceProvider.RemoveService(typeof(DesignerOptionService)); 50serviceProvider.RemoveService(typeof(DesignerOptionService)); 63serviceProvider.RemoveService(typeof(DesignerOptionService)); 76serviceProvider.RemoveService(typeof(DesignerOptionService));
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerHost.cs (2)
467sc.RemoveService(t); 1292sc.RemoveService(serviceType);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
134SiteServiceContainer.RemoveService(serviceType);
System\ComponentModel\Design\ServiceContainerExtensions.cs (1)
14public static void RemoveService<T>(this IServiceContainer serviceContainer) => serviceContainer.RemoveService(typeof(T));
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\DesignerActionServiceTests.cs (6)
256.Setup(h => h.RemoveService(typeof(DesignerActionService))); 271mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Once()); 275mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(2)); 287.Setup(h => h.RemoveService(typeof(DesignerActionService))); 302mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount)); 306mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount * 2));
System\ComponentModel\Design\DesignerHostTests.cs (2)
2889host.RemoveService(typeof(object)); 2916Assert.Throws<ObjectDisposedException>(() => host.RemoveService(typeof(object)));