次の方法で共有


IStartup.ConfigureServices(IServiceCollection) メソッド

定義

サービスを に登録します 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

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

戻り値

適用対象