次の方法で共有


IServiceProviderFactory<TContainerBuilder>.CreateServiceProvider Method

Definition

Creates an IServiceProvider from the container builder.

public:
 IServiceProvider ^ CreateServiceProvider(TContainerBuilder containerBuilder);
public IServiceProvider CreateServiceProvider (TContainerBuilder containerBuilder);
abstract member CreateServiceProvider : 'ContainerBuilder -> IServiceProvider
Public Function CreateServiceProvider (containerBuilder As TContainerBuilder) As IServiceProvider

Parameters

containerBuilder
TContainerBuilder

The container builder.

Returns

An IServiceProvider instance.

Applies to