Removes a service from the internal collection.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Sub RemoveService ( _
serviceType As Type _
)
'使用
Dim instance As OleServiceProvider
Dim serviceType As Type
instance.RemoveService(serviceType)
public void RemoveService(
Type serviceType
)
public:
void RemoveService(
Type^ serviceType
)
public function RemoveService(
serviceType : Type
)
Parameters
serviceType
Type: System.TypeThe type of the service.
Remarks
If the service implements the IDisposable interface, this method also disposes it.
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.