Compartir a través de


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
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaración
Private Sub RemoveService ( _
    serviceType As Type _
) Implements IServiceContainer.RemoveService
'Uso
Dim instance As Package
Dim serviceType As Type

CType(instance, IServiceContainer).RemoveService(serviceType)
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

Package Members

RemoveService Overload

Microsoft.VisualStudio.Shell Namespace