次の方法で共有


StartupBase.CreateServiceProvider(IServiceCollection) メソッド

定義

指定ConfigureServices(IServiceCollection)した のIServiceProviderインスタンスを作成します。

public:
 virtual IServiceProvider ^ CreateServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public virtual IServiceProvider CreateServiceProvider (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
override this.CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Public Overridable Function CreateServiceProvider (services As IServiceCollection) As IServiceProvider

パラメーター

services
IServiceCollection

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

戻り値

IServiceProvider

適用対象