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