Connection.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.
Removes the specified service type from the service container.
Overloads
IServiceContainer.RemoveService(Type) |
Removes the specified service type from the service container. |
IServiceContainer.RemoveService(Type, Boolean) |
Removes the specified service type from the service container, optionally promoting the request to any parent service containers. |
IServiceContainer.RemoveService(Type)
Removes the specified service type from the service container.
virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(Type ^ serviceType) = System::ComponentModel::Design::IServiceContainer::RemoveService;
void IServiceContainer.RemoveService (Type serviceType);
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 specified service type from the service container, optionally promoting the request to any parent service containers.
virtual void System.ComponentModel.Design.IServiceContainer.RemoveService(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
The type of service to remove.
- promote
- Boolean
true
to promote this request to any parent service containers; otherwise, false
.