StartupBase<TBuilder>.IStartup.ConfigureServices 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
virtual IServiceProvider ^ Microsoft.AspNetCore.Hosting.IStartup.ConfigureServices(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services) = Microsoft::AspNetCore::Hosting::IStartup::ConfigureServices;
IServiceProvider IStartup.ConfigureServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member Microsoft.AspNetCore.Hosting.IStartup.ConfigureServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
override this.Microsoft.AspNetCore.Hosting.IStartup.ConfigureServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Function ConfigureServices (services As IServiceCollection) As IServiceProvider Implements IStartup.ConfigureServices
參數
- services
- IServiceCollection