Freigeben über


ServiceProvider.RemoveService Method

Definition

Overloads

RemoveService(Type)

Removes the specified service from the internal services collection

RemoveService(Type, Boolean)

Removes the specified service from the internal services collection or from the parent service container.

RemoveService(Type)

Removes the specified service from the internal services collection

public:
 virtual void RemoveService(Type ^ serviceType);
public void RemoveService (Type serviceType);
abstract member RemoveService : Type -> unit
override this.RemoveService : Type -> unit
Public Sub RemoveService (serviceType As Type)

Parameters

serviceType
Type

The type of the service.

Implements

Applies to

RemoveService(Type, Boolean)

Removes the specified service from the internal services collection or from the parent service container.

public:
 virtual void RemoveService(Type ^ serviceType, bool promote);
public virtual void RemoveService (Type serviceType, bool promote);
abstract member RemoveService : Type * bool -> unit
override this.RemoveService : Type * bool -> unit
Public Overridable Sub RemoveService (serviceType As Type, promote As Boolean)

Parameters

serviceType
Type

The type of the service.

promote
Boolean

A Boolean value indicating whether to remove the service from the parent container.

Implements

Applies to