IServiceContainer::RemoveService Method (Type^, Boolean)
.NET Framework (current version)
Removes the specified service type from the service container, and optionally promotes the service to parent service containers.
Assembly: System (in System.dll)
Parameters
- serviceType
-
Type:
System::Type^
The type of service to remove.
- promote
-
Type:
System::Boolean
true to promote this request to any parent service containers; otherwise, false.
The following example demonstrates how to remove a service from an IServiceContainer.
.NET Framework
Available since 1.1
Available since 1.1
Show: