ModelBus 建構函式 (IServiceProvider, Action<ErrorCategory, String>, IConfiguration)
建構函式 -- 裝載 ModelBus 的應用程式應該傳入 IServiceProvider 執行個體,使 ModelBus 可以要求服務。
命名空間: Microsoft.VisualStudio.Modeling.Integration
組件: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)
語法
public ModelBus(
IServiceProvider serviceProvider,
Action<ErrorCategory, string> errorCallback,
IConfiguration configuration
)
public:
ModelBus(
IServiceProvider^ serviceProvider,
Action<ErrorCategory, String^>^ errorCallback,
IConfiguration^ configuration
)
new :
serviceProvider:IServiceProvider *
errorCallback:Action<ErrorCategory, string> *
configuration:IConfiguration -> ModelBus
Public Sub New (
serviceProvider As IServiceProvider,
errorCallback As Action(Of ErrorCategory, String),
configuration As IConfiguration
)
參數
請參閱
ModelBus 類別
Microsoft.VisualStudio.Modeling.Integration 命名空間
回到頁首