Share via


Package.IServiceContainer.RemoveService Method (Type)

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.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaration
Private Sub RemoveService ( _
    serviceType As Type _
) Implements IServiceContainer.RemoveService
void IServiceContainer.RemoveService(
    Type serviceType
)
private:
virtual void RemoveService(
    Type^ serviceType
) sealed = IServiceContainer::RemoveService
private abstract RemoveService : 
        serviceType:Type -> unit 
private override RemoveService : 
        serviceType:Type -> unit 
JScript does not support explicit interface implementations.

Parameters

  • serviceType
    Type: System.Type
    The type of service to remove.

Implements

IServiceContainer.RemoveService(Type)

.NET Framework Security

See Also

Reference

Package Class

RemoveService Overload

Microsoft.VisualStudio.Shell Namespace