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
'宣言
Private Sub RemoveService ( _
serviceType As Type _
) Implements IServiceContainer.RemoveService
'使用
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
- 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.