다음을 통해 공유


OptionsConfigurationServiceCollectionExtensions.Configure 메서드

정의

오버로드

Configure<TOptions>(IServiceCollection, IConfiguration)

TOptions가 바인딩할 구성 인스턴스를 등록하고, 구성이 변경되면 옵션을 업데이트합니다.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

Configure<TOptions>(IServiceCollection, IConfiguration)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

TOptions가 바인딩할 구성 인스턴스를 등록하고, 구성이 변경되면 옵션을 업데이트합니다.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, config As IConfiguration) As IServiceCollection

형식 매개 변수

TOptions

구성되는 옵션의 유형입니다.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

config
IConfiguration

바인딩할 구성입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, config As IConfiguration, configureBinder As Action(Of BinderOptions)) As IServiceCollection

형식 매개 변수

TOptions

구성되는 옵션의 유형입니다.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

config
IConfiguration

바인딩할 구성입니다.

configureBinder
Action<BinderOptions>

BinderOptions를 구성하는 데 사용됩니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, config As IConfiguration) As IServiceCollection

형식 매개 변수

TOptions

구성되는 옵션의 유형입니다.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

name
String

옵션 인스턴스의 이름입니다.

config
IConfiguration

바인딩할 구성입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

TOptions를 바인딩할 구성 인스턴스를 등록합니다.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, config As IConfiguration, configureBinder As Action(Of BinderOptions)) As IServiceCollection

형식 매개 변수

TOptions

구성되는 옵션의 유형입니다.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

name
String

옵션 인스턴스의 이름입니다.

config
IConfiguration

바인딩할 구성입니다.

configureBinder
Action<BinderOptions>

BinderOptions를 구성하는 데 사용됩니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상