3 implementations of AddService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
107
public virtual void
AddService
(Type serviceType, ServiceCreatorCallback callback, bool promote)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1283
void IServiceContainer.
AddService
(Type serviceType, ServiceCreatorCallback callback, bool promote)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
124
void IServiceContainer.
AddService
(Type serviceType, ServiceCreatorCallback callback, bool promote)
8 references to AddService
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
114
container.
AddService
(serviceType, callback, promote);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1286
sc.
AddService
(serviceType, callback, promote);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
126
SiteServiceContainer.
AddService
(serviceType, callback, promote);
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\DesignerHostTests.cs (5)
1205
container.
AddService
(typeof(object), callback, true);
1240
container.
AddService
(typeof(object), callback, false);
1773
host.
AddService
(typeof(object), callback, promote);
1790
Assert.Throws<ObjectDisposedException>(() => host.
AddService
(typeof(object), callback, true));
1791
Assert.Throws<ObjectDisposedException>(() => host.
AddService
(typeof(object), callback, false));