Metodo Package.IServiceContainer.AddService (Type, Object)

Questa API supporta l'infrastruttura .NET Framework e non deve essere utilizzata direttamente dal codice.

Aggiunge il servizio specificato al contenitore del servizio del package VS.

Spazio dei nomi:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Sintassi

'Dichiarazione
Private Sub AddService ( _
    serviceType As Type, _
    serviceInstance As Object _
) Implements IServiceContainer.AddService
void IServiceContainer.AddService(
    Type serviceType,
    Object serviceInstance
)

Parametri

  • serviceType
    Tipo: System.Type
    tipo di servizio da aggiungere.

Implementa

IServiceContainer.AddService(Type, Object)

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Package Classe

Overload AddService

Spazio dei nomi Microsoft.VisualStudio.Shell