Bagikan melalui


IStartup.ConfigureServices(IServiceCollection) Metode

Definisi

Daftarkan layanan ke IServiceCollectiondalam .

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

Parameter

services
IServiceCollection

untuk IServiceCollection menambahkan layanan.

Mengembalikan

Berlaku untuk