Megosztás a következőn keresztül:


DefaultServiceProviderFactory.CreateBuilder(IServiceCollection) Method

Definition

Creates a container builder from an 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

Parameters

services
IServiceCollection

The collection of services.

Returns

A container builder that can be used to create an IServiceProvider.

Implements

Applies to