MefInjection<TService,TInterface> 构造函数

定义

此构造函数仅供内部使用。 创建 MefInjection<TService,TInterface> 的实例。

public MefInjection (Microsoft.VisualStudio.Extensibility.VSSdkCompatibility.AsyncServiceProviderInjection<Microsoft.VisualStudio.ComponentModelHost.SComponentModel,Microsoft.VisualStudio.ComponentModelHost.IComponentModel> componentModel);
new Microsoft.VisualStudio.Extensibility.VSSdkCompatibility.MefInjection<'Service, 'Interface (requires 'Service : null)> : Microsoft.VisualStudio.Extensibility.VSSdkCompatibility.AsyncServiceProviderInjection<Microsoft.VisualStudio.ComponentModelHost.SComponentModel, Microsoft.VisualStudio.ComponentModelHost.IComponentModel> -> Microsoft.VisualStudio.Extensibility.VSSdkCompatibility.MefInjection<'Service, 'Interface (requires 'Service : null)>
Public Sub New (componentModel As AsyncServiceProviderInjection(Of SComponentModel, IComponentModel))

参数

componentModel
AsyncServiceProviderInjection<SComponentModel,IComponentModel>

Visual Studio 中的 MEF 主机。

适用于