Package.IServiceContainer.RemoveService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IServiceContainer.RemoveService(Type) |
Removes the given service type from the service container. |
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)
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);
abstract member System.ComponentModel.Design.IServiceContainer.RemoveService : Type -> unit
override this.System.ComponentModel.Design.IServiceContainer.RemoveService : Type -> unit
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 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);
abstract member System.ComponentModel.Design.IServiceContainer.RemoveService : Type * bool -> unit
override this.System.ComponentModel.Design.IServiceContainer.RemoveService : Type * bool -> unit
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
.