Package.IServiceContainer.RemoveService 方法 (Type)

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

从服务容器移除特定服务类型。

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Private Sub RemoveService ( _
    serviceType As Type _
) Implements IServiceContainer.RemoveService
void IServiceContainer.RemoveService(
    Type serviceType
)

参数

  • serviceType
    类型:System.Type
    要移除的服务类型。

实现

IServiceContainer.RemoveService(Type)

.NET Framework 安全性

请参见

参考

Package 类

RemoveService 重载

Microsoft.VisualStudio.Shell 命名空间