Package.IServiceContainer.RemoveService Package.IServiceContainer.RemoveService Package.IServiceContainer.RemoveService Package.IServiceContainer.RemoveService Method

Definition

Overloads

IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type)

Removes the given service type from the service container.

IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean)

Removes the given service type from the service container, and optionally promotes the removal of the service to parent service containers.

IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type) IServiceContainer.RemoveService(Type)

Removes the given service type from the service container.

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

Parameters

serviceType
Type Type Type Type

The type of service to remove.

IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean) IServiceContainer.RemoveService(Type, Boolean)

Removes the given service type from the service container, and optionally promotes the removal of the service to parent service containers.

 virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(Type ^ serviceType, bool promote) = System::ComponentModel::Design::IServiceContainer::RemoveService;
 virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(Platform::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 Type Type Type

The type of service to remove.

promote
Boolean Boolean Boolean Boolean

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

Applies to