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)
37
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
50
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
63
serviceProvider.
RemoveService
(typeof(DesignerOptionService));
76
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)
256
.Setup(h => h.
RemoveService
(typeof(DesignerActionService)));
271
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Once());
275
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(2));
287
.Setup(h => h.
RemoveService
(typeof(DesignerActionService)));
302
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount));
306
mockDesignerHost.Verify(h => h.
RemoveService
(typeof(DesignerActionService)), Times.Exactly(expectedRemoveCallCount * 2));
System\ComponentModel\Design\DesignerHostTests.cs (2)
2889
host.
RemoveService
(typeof(object));
2916
Assert.Throws<ObjectDisposedException>(() => host.
RemoveService
(typeof(object)));