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)
1289
void IServiceContainer.
RemoveService
(Type serviceType)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
132
void IServiceContainer.
RemoveService
(Type serviceType)
16 references to RemoveService
DesignSurfaceExt (4)
DesignSurfaceExt.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)
467
sc.
RemoveService
(t);
1292
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 (8)
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)));