OptionsServiceCollectionExtensions.ConfigureOptions Méthode

Définition

Surcharges

ConfigureOptions(IServiceCollection, Object)

Inscrit un objet dont tous les I[Post]ConfigureOptions seront inscrits.

ConfigureOptions(IServiceCollection, Type)

Inscrit un type dont tous les I[Post]ConfigureOptions seront inscrits.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Inscrit un type dont tous les I[Post]ConfigureOptions seront inscrits.

ConfigureOptions(IServiceCollection, Object)

Inscrit un objet dont tous les I[Post]ConfigureOptions seront inscrits.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

configureInstance
Object

Instance qui va configurer les options.

Retours

IServiceCollection

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

ConfigureOptions(IServiceCollection, Type)

Inscrit un type dont tous les I[Post]ConfigureOptions seront inscrits.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

configureType
Type

Type qui va configurer les options.

Retours

IServiceCollection

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Inscrit un type dont tous les I[Post]ConfigureOptions seront inscrits.

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

Paramètres de type

TConfigureOptions

Type qui va configurer les options.

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

IServiceCollection

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à