OptionsServiceCollectionExtensions.ConfigureOptions Methode

Definition

Überlädt

ConfigureOptions(IServiceCollection, Object)

Registriert ein Objekt, dessen „I[Post]ConfigureOptions“ alle registriert werden.Registers an object that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Type)

Registriert einen Typ, dessen „I[Post]ConfigureOptions“ alle registriert werden.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Registriert einen Typ, dessen „I[Post]ConfigureOptions“ alle registriert werden.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Object)

Registriert ein Objekt, dessen „I[Post]ConfigureOptions“ alle registriert werden.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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

configureInstance
Object

Die Instanz, mit der Optionen konfiguriert werden.The instance that will configure options.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.The IServiceCollection so that additional calls can be chained.

ConfigureOptions(IServiceCollection, Type)

Registriert einen Typ, dessen „I[Post]ConfigureOptions“ alle registriert werden.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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

configureType
Type

Der Typ, mit dem Optionen konfiguriert werden.The type that will configure options.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.The IServiceCollection so that additional calls can be chained.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Registriert einen Typ, dessen „I[Post]ConfigureOptions“ alle registriert werden.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

Typparameter

TConfigureOptions

Der Typ, mit dem Optionen konfiguriert werden.The type that will configure options.

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

Gibt zurück

Die IServiceCollection-Schnittstelle zur Verkettung weiterer Aufrufe.The IServiceCollection so that additional calls can be chained.

Gilt für: