Share via


Connection.IServiceContainer.RemoveService Method

Definition

Removes the specified service type from the service container.

Overloads

IServiceContainer.RemoveService(Type)

Removes the specified service type from the service container.

IServiceContainer.RemoveService(Type, Boolean)

Removes the specified service type from the service container, optionally promoting the request to any parent service containers.

IServiceContainer.RemoveService(Type)

Removes the specified service type from the service container.

 virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(Type ^ serviceType) = System::ComponentModel::Design::IServiceContainer::RemoveService;
void IServiceContainer.RemoveService (Type serviceType);
Sub RemoveService (serviceType As Type) Implements IServiceContainer.RemoveService

Parameters

serviceType
Type

The type of service to remove.

Implements

Applies to

IServiceContainer.RemoveService(Type, Boolean)

Removes the specified service type from the service container, optionally promoting the request to any parent service containers.

 virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(Type ^ serviceType, bool promote) = System::ComponentModel::Design::IServiceContainer::RemoveService;
void IServiceContainer.RemoveService (Type serviceType, bool promote);
Sub RemoveService (serviceType As Type, promote As Boolean) Implements IServiceContainer.RemoveService

Parameters

serviceType
Type

The type of service to remove.

promote
Boolean

true to promote this request to any parent service containers; otherwise, false.

Implements

Applies to