Condividi tramite


ContextualOptionsServiceCollectionExtensions.AddContextualOptions Metodo

Definizione

Aggiunge i servizi necessari per l'uso delle opzioni contestuali.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Valore di services.

Si applica a