ContextualOptionsServiceCollectionExtensions.AddContextualOptions Methode

Definition

Fügt Dienste hinzu, die für die Verwendung kontextbezogener Optionen erforderlich sind.

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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

Gibt zurück

Der Wert von services.

Gilt für: