RemoveService Method (Type)
Collapse the table of content
Expand the table of content

IServiceContainer.RemoveService Method (Type)

 

Removes the specified service type from the service container.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

void RemoveService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service to remove.

The following example demonstrates how to remove a service from an IServiceContainer.

m_MyServiceContainer.RemoveService(typeof(Control));

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft