ServiceCollectionContainerBuilderExtensions.BuildServiceProvider メソッド

定義

オーバーロード

BuildServiceProvider(IServiceCollection)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成します。Creates a ServiceProvider containing services from the provided IServiceCollection.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成し、必要に応じてスコープの検証を有効にします。Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

BuildServiceProvider(IServiceCollection, Boolean)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成し、必要に応じてスコープの検証を有効にします。Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

BuildServiceProvider(IServiceCollection)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成します。Creates a ServiceProvider containing services from the provided IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection) As ServiceProvider

パラメーター

services
IServiceCollection

サービス記述子を格納する IServiceCollectionThe IServiceCollection containing service descriptors.

戻り値

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成し、必要に応じてスコープの検証を有効にします。Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^ options);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.DependencyInjection.ServiceProviderOptions -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, options As ServiceProviderOptions) As ServiceProvider

パラメーター

services
IServiceCollection

サービス記述子を格納する IServiceCollectionThe IServiceCollection containing service descriptors.

options
ServiceProviderOptions

さまざまなサービス プロバイダーの動作を構成します。Configures various service provider behaviors.

戻り値

BuildServiceProvider(IServiceCollection, Boolean)

指定した ServiceProvider のサービスを格納する IServiceCollection を作成し、必要に応じてスコープの検証を有効にします。Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, bool validateScopes);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, bool validateScopes);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * bool -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, validateScopes As Boolean) As ServiceProvider

パラメーター

services
IServiceCollection

サービス記述子を格納する IServiceCollectionThe IServiceCollection containing service descriptors.

validateScopes
Boolean

スコープ サービスがルート プロバイダーから解決されないことを確認するチェックを実行するには true。それ以外の場合は falsetrue to perform check verifying that scoped services never gets resolved from root provider; otherwise, false.

戻り値

適用対象