OleServiceProvider.RemoveService Method

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.Type

    The type of the service.

Remarks

If the service implements the IDisposable interface, this method also disposes it.

Permissions

See Also

Reference

OleServiceProvider Class

OleServiceProvider Members

Microsoft.VisualStudio.Package Namespace