Condividi tramite


MvcViewFeaturesMvcBuilderExtensions.AddCookieTempDataProvider Metodo

Definizione

Overload

AddCookieTempDataProvider(IMvcBuilder)

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection.

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection.

AddCookieTempDataProvider(IMvcBuilder)

Origine:
MvcViewFeaturesMvcBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcBuilderExtensions.cs

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection.

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

Parametri

builder
IMvcBuilder

Oggetto IMvcBuilder.

Restituisce

Oggetto IMvcBuilder.

Si applica a

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

Origine:
MvcViewFeaturesMvcBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcBuilderExtensions.cs
Origine:
MvcViewFeaturesMvcBuilderExtensions.cs

CookieTempDataProvider Registra come impostazione predefinita ITempDataProvider in IServiceCollection.

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

Parametri

builder
IMvcBuilder

Oggetto IMvcBuilder.

setupAction
Action<CookieTempDataProviderOptions>

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

Restituisce

Oggetto IMvcBuilder.

Si applica a