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)
1279void IServiceContainer.RemoveService(Type serviceType)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
132void IServiceContainer.RemoveService(Type serviceType)
18 references to RemoveService
DemoConsole (4)
DesignSurfaceExtended.cs (4)
30serviceProvider.RemoveService(typeof(DesignerOptionService)); 43serviceProvider.RemoveService(typeof(DesignerOptionService)); 56serviceProvider.RemoveService(typeof(DesignerOptionService)); 69serviceProvider.RemoveService(typeof(DesignerOptionService));
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerHost.cs (2)
460sc.RemoveService(t); 1282sc.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 (10)
System\ComponentModel\Design\DesignerActionServiceTests.cs (6)
258.Setup(h => h.RemoveService(typeof(DesignerActionService))); 273mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Once()); 277mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(2)); 289.Setup(h => h.RemoveService(typeof(DesignerActionService))); 304mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount)); 308mockDesignerHost.Verify(h => h.RemoveService(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount * 2));
System\ComponentModel\Design\DesignerHostTests.cs (2)
2891host.RemoveService(typeof(object)); 2918Assert.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);