MvcViewFeaturesMvcBuilderExtensions.AddCookieTempDataProvider Method

Definition

Overloads

AddCookieTempDataProvider(IMvcBuilder)

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection.

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection.

AddCookieTempDataProvider(IMvcBuilder)

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

Returns

IMvcBuilder

The IMvcBuilder.

Applies to

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

Returns

IMvcBuilder

The IMvcBuilder.

Applies to