3 implementations of AddService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
66
public virtual void
AddService
(Type serviceType, object serviceInstance, bool promote)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1271
void IServiceContainer.
AddService
(Type serviceType, object serviceInstance, bool promote)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
108
void IServiceContainer.
AddService
(Type serviceType, object serviceInstance, bool promote)
8 references to AddService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
73
container.
AddService
(serviceType, serviceInstance, promote);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1274
sc.
AddService
(serviceType, serviceInstance, promote);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
110
SiteServiceContainer.
AddService
(serviceType, serviceInstance, promote);
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\DesignerHostTests.cs (5)
1103
container.
AddService
(typeof(object), service, true);
1133
container.
AddService
(typeof(object), service, false);
1744
host.
AddService
(typeof(object), service, promote);
1787
Assert.Throws<ObjectDisposedException>(() => host.
AddService
(typeof(object), new object(), true));
1788
Assert.Throws<ObjectDisposedException>(() => host.
AddService
(typeof(object), new object(), false));