Package.IServiceContainer.RemoveService Package.IServiceContainer.RemoveService Method

Definition

Overloads

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

Removes the given service type from the service container.

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)

Removes the given service type from the service container.

void IServiceContainer.RemoveService (Type serviceType);
Sub RemoveService (serviceType As Type) Implements IServiceContainer.RemoveService
Parameters
serviceType
Type Type

The type of service to remove.

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.

void IServiceContainer.RemoveService (Type serviceType, bool promote);
Sub RemoveService (serviceType As Type, promote As Boolean) Implements IServiceContainer.RemoveService
Parameters
serviceType
Type Type

The type of service to remove.

promote
Boolean Boolean

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

Applies to