Share via


Metodo WindowPane.IServiceProvider.GetService

Ottiene il servizio del tipo specificato.

Spazio dei nomi:  Microsoft.VisualStudio.Shell
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

  • serviceType
    Tipo: System.Type
    Il tipo di servizio da ottenere.

Valore restituito

Tipo: System.Object
un oggetto che rappresenta il servizio.

Implementa

IServiceProvider.GetService(Type)

Sicurezza di .NET Framework

Vedere anche

Riferimenti

WindowPane Classe

Spazio dei nomi Microsoft.VisualStudio.Shell