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( Control::typeid );

.NET Framework
Available since 1.1
Return to top
Show: