ServiceContainer::RemoveService Method (Type^)
.NET Framework (current version)
Removes the specified service type from the service container.
Assembly: System (in System.dll)
Parameters
- serviceType
-
Type:
System::Type^
The type of service to remove.
Implements
IServiceContainer::RemoveService(Type^)| Exception | Condition |
|---|---|
| ArgumentNullException | serviceType is null. |
The following example illustrates how to remove a service from a ServiceContainer.
.NET Framework
Available since 1.1
Available since 1.1
Show: