Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Private Sub RemoveService ( _
serviceType As Type, _
promote As Boolean _
) Implements IServiceContainer.RemoveService
'使用
Dim instance As Package
Dim serviceType As Type
Dim promote As Boolean
CType(instance, IServiceContainer).RemoveService(serviceType, _
promote)
void IServiceContainer.RemoveService(
Type serviceType,
bool promote
)
private:
virtual void RemoveService(
Type^ serviceType,
bool promote
) sealed = IServiceContainer::RemoveService
JScript does not support explicit interface implementations.
Parameters
- serviceType
Type: System.Type
- promote
Type: System.Boolean
Implements
IServiceContainer.RemoveService(Type, Boolean)
Permissions
- 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.