Udostępnij za pośrednictwem


DefaultServiceProviderFactory.CreateBuilder(IServiceCollection) Metoda

Definicja

Tworzy konstruktora kontenerów na podstawie elementu 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

Kolekcja usług.

Zwraca

Konstruktor kontenerów, którego można użyć do utworzenia elementu IServiceProvider.

Implementuje

Dotyczy