OptionsServiceCollectionExtensions.ConfigureOptions 메서드

정의

오버로드

ConfigureOptions(IServiceCollection, Object)

모든 I[Post]ConfigureOptions를 등록하는 개체를 등록합니다.Registers an object that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Type)

모든 I[Post]ConfigureOptions를 등록하는 형식을 등록합니다.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

모든 I[Post]ConfigureOptions를 등록하는 형식을 등록합니다.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Object)

모든 I[Post]ConfigureOptions를 등록하는 개체를 등록합니다.Registers an object that will have all of its I[Post]ConfigureOptions registered.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ ConfigureOptions(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::Object ^ configureInstance);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object configureInstance);
static member ConfigureOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function ConfigureOptions (services As IServiceCollection, configureInstance As Object) As IServiceCollection

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add the services to.

configureInstance
Object

옵션을 구성하는 인스턴스입니다.The instance that will configure options.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

ConfigureOptions(IServiceCollection, Type)

모든 I[Post]ConfigureOptions를 등록하는 형식을 등록합니다.Registers a type that will have all of its I[Post]ConfigureOptions registered.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add the services to.

configureType
Type

옵션을 구성하는 형식입니다.The type that will configure options.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

모든 I[Post]ConfigureOptions를 등록하는 형식을 등록합니다.Registers a type that will have all of its I[Post]ConfigureOptions registered.

public:
generic <typename TConfigureOptions>
 where TConfigureOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ ConfigureOptions(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions<TConfigureOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TConfigureOptions : class;
static member ConfigureOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'ConfigureOptions : null)
<Extension()>
Public Function ConfigureOptions(Of TConfigureOptions As Class) (services As IServiceCollection) As IServiceCollection

형식 매개 변수

TConfigureOptions

옵션을 구성하는 형식입니다.The type that will configure options.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add the services to.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

적용 대상