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