Metodo FlavoredProject.IServiceProvider.GetService

Ottiene il servizio del tipo specificato.

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

Sintassi

'Dichiarazione
Private Function GetService ( _
    serviceType As Type _
) As Object Implements IServiceProvider.GetService
Object IServiceProvider.GetService(
    Type serviceType
)

Parametri

Valore restituito

Tipo: System.Object
Un servizio del tipo specificato.

Implementa

IServiceProvider.GetService(Type)

Note

Questo metodo restituisce IOleCommandTarget o IMenuCommandService, o delega la ricerca IServiceProvider.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

FlavoredProject Classe

Spazio dei nomi Microsoft.VisualStudio.Shell.Flavor