IServiceProviderFactory<TContainerBuilder>.CreateServiceProvider 方法

定义

从容器生成器创建 IServiceProvider

public:
 IServiceProvider ^ CreateServiceProvider(TContainerBuilder containerBuilder);
public IServiceProvider CreateServiceProvider (TContainerBuilder containerBuilder);
abstract member CreateServiceProvider : 'ContainerBuilder -> IServiceProvider
Public Function CreateServiceProvider (containerBuilder As TContainerBuilder) As IServiceProvider

参数

containerBuilder
TContainerBuilder

容器生成器。

返回

IServiceProvider

适用于