DefaultServiceProviderFactory.CreateBuilder(IServiceCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a container builder from an IServiceCollection.
public:
virtual Microsoft::Extensions::DependencyInjection::IServiceCollection ^ CreateBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public Microsoft.Extensions.DependencyInjection.IServiceCollection CreateBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
override this.CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
Public Function CreateBuilder (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The collection of services.
Returns
A container builder that can be used to create an IServiceProvider.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.