Package.IServiceContainer.RemoveService Method (Type, Boolean)
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Removes the given service type from the service container, and optionally promotes the removal of the service to parent service containers.
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
- Type: System.Type
The type of service to remove.
- Type: System.Boolean
true to promote this request to any parent service containers; otherwise, false.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.