DefaultServiceProviderFactory.CreateBuilder(IServiceCollection) 方法

定义

IServiceCollection 创建容器生成器。

public:
 virtual Microsoft::Extensions::DependencyInjection::IServiceCollection ^ CreateBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public Microsoft.Extensions.DependencyInjection.IServiceCollection CreateBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
override this.CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
Public Function CreateBuilder (services As IServiceCollection) As IServiceCollection

参数

services
IServiceCollection

服务的集合。

返回

可用于创建 IServiceProvider 的容器生成器。

实现

适用于