다음을 통해 공유


ServiceCollectionContainerBuilderExtensions.BuildServiceProvider 메서드

정의

오버로드

BuildServiceProvider(IServiceCollection)

제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

서비스 생성 및 범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

BuildServiceProvider(IServiceCollection, Boolean)

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

BuildServiceProvider(IServiceCollection)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

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

서비스 설명자를 포함하는 IServiceCollection입니다.

반환

ServiceProvider

적용 대상

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

서비스 생성 및 범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

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

서비스 설명자를 포함하는 IServiceCollection입니다.

options
ServiceProviderOptions

서비스 생성 및 범위 유효성 검사를 비롯한 다양한 서비스 공급자 동작을 구성합니다.

반환

ServiceProvider

적용 대상

BuildServiceProvider(IServiceCollection, Boolean)

Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs
Source:
ServiceCollectionContainerBuilderExtensions.cs

범위 유효성 검사를 선택적으로 활성화하여 제공된 IServiceCollection에서 서비스를 포함하는 ServiceProvider를 만듭니다.

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

서비스 설명자를 포함하는 IServiceCollection입니다.

validateScopes
Boolean

범위 지정 서비스가 루트 공급자에서 확인되지 않는지 확인하는 검사를 수행하려면 true이고, 그렇지 않으면 false입니다.

반환

ServiceProvider

적용 대상