Skip to main content
.NET Framework Class Library
IServiceContainer..::.RemoveService Method





Removes the specified service type from the service container.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodRemoveService(Type)Removes the specified service type from the service container.
Public methodRemoveService(Type, Boolean)Removes the specified service type from the service container, and optionally promotes the service to parent service containers.
Top