Udostępnij za pośrednictwem


Metoda ModelBus.GetService —

Zwraca kart świadczone przez ModeBus lub przez gospodarza.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Integration
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

Składnia

'Deklaracja
Public Function GetService ( _
    serviceType As Type _
) As Object
public Object GetService(
    Type serviceType
)

Parametry

Wartość zwracana

Typ: System.Object
Wystąpienie ModelBusAdapter lub wartość null, jeśli ModelBus i hosta nie obsługuje go.

Implementuje

IServiceProvider.GetService(Type)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ModelBus Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Integration