Export (0) Print
Expand All

ServiceContainer.RemoveService Method (Type, Boolean)

Removes the specified service type from the service container.

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

public virtual void RemoveService(
	Type serviceType,
	bool promote
)

Parameters

serviceType
Type: System.Type

The type of service to remove.

promote
Type: System.Boolean

true if this service should be removed from any parent service containers; otherwise, false.

Implements

IServiceContainer.RemoveService(Type, Boolean)

ExceptionCondition
ArgumentNullException

serviceType is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft