ServiceProvider.RemoveService, méthode (Type, Boolean)

Supprime le service spécifié de la collection interne de services ou du conteneur parent de service.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Public Overridable Sub RemoveService ( _
    serviceType As Type, _
    promote As Boolean _
)
public virtual void RemoveService(
    Type serviceType,
    bool promote
)
public:
virtual void RemoveService(
    Type^ serviceType, 
    bool promote
)
abstract RemoveService : 
        serviceType:Type * 
        promote:bool -> unit  
override RemoveService : 
        serviceType:Type * 
        promote:bool -> unit
public function RemoveService(
    serviceType : Type, 
    promote : boolean
)

Paramètres

  • serviceType
    Type : Type

    Type du service.

  • promote
    Type : Boolean

    Une valeur d' Boolean indiquant s'il faut supprimer le service du conteneur parent.

Implémentations

IServiceContainer.RemoveService(Type, Boolean)

Sécurité .NET Framework

Voir aussi

Référence

ServiceProvider Classe

RemoveService, surcharge

Microsoft.VisualStudio.Data.Framework, espace de noms