Sdílet prostřednictvím


DefaultServiceProviderFactory.CreateBuilder(IServiceCollection) Metoda

Definice

Vytvoří tvůrce kontejneru z objektu 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

Parametry

services
IServiceCollection

Kolekce služeb.

Návraty

Tvůrce kontejneru, který lze použít k vytvoření objektu IServiceProvider.

Implementuje

Platí pro