ServiceProvider.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
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.