共用方式為


IServiceProviderFactory<TContainerBuilder>.CreateBuilder 方法

定義

IServiceCollection 建立容器建立器。

public:
 TContainerBuilder CreateBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public TContainerBuilder CreateBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> 'ContainerBuilder
Public Function CreateBuilder (services As IServiceCollection) As TContainerBuilder

參數

services
IServiceCollection

服務的集合。

傳回

TContainerBuilder

可以用於建立 IServiceProvider 的容器建立器。

適用於