Condividi tramite


MvcViewFeaturesMvcCoreBuilderExtensions.AddCookieTempDataProvider Metodo

Definizione

Overload

AddCookieTempDataProvider(IMvcCoreBuilder)

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection. Registra anche i servizi di visualizzazione predefiniti.

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection. Registra anche i servizi di visualizzazione predefiniti.

AddCookieTempDataProvider(IMvcCoreBuilder)

Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection. Registra anche i servizi di visualizzazione predefiniti.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddCookieTempDataProvider : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddCookieTempDataProvider (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection. Registra anche i servizi di visualizzazione predefiniti.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> setupAction);
static member AddCookieTempDataProvider : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddCookieTempDataProvider (builder As IMvcCoreBuilder, setupAction As Action(Of CookieTempDataProviderOptions)) As IMvcCoreBuilder

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

setupAction
Action<CookieTempDataProviderOptions>

Oggetto Action<T> per la configurazione dell'oggetto CookieTempDataProviderOptions fornito.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a