Partager via


IStartup.ConfigureServices(IServiceCollection) Méthode

Définition

Inscrivez les services dans .IServiceCollection

public:
 IServiceProvider ^ ConfigureServices(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public IServiceProvider ConfigureServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member ConfigureServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Public Function ConfigureServices (services As IServiceCollection) As IServiceProvider

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

S’applique à