ModelBus – konstruktor
Konstruktor--hostování ModelBus aplikací by měly předat instanci objekt IServiceProvider tak ModelBus mohou požadovat služby.
Obor názvů: Microsoft.VisualStudio.Modeling.Integration
Sestavení: Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0 (v Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll)
Syntaxe
'Deklarace
Public Sub New ( _
serviceProvider As IServiceProvider, _
errorCallback As Action(Of ErrorCategory, String), _
configuration As IConfiguration _
)
public ModelBus(
IServiceProvider serviceProvider,
Action<ErrorCategory, string> errorCallback,
IConfiguration configuration
)
Parametry
- serviceProvider
Typ: System.IServiceProvider
- errorCallback
Typ: System.Action<ErrorCategory, String>
- configuration
Typ: Microsoft.VisualStudio.Modeling.Integration.IConfiguration
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.