Share via


MvcViewFeaturesMvcCoreBuilderExtensions.AddCookieTempDataProvider Method

Definition

Overloads

AddCookieTempDataProvider(IMvcCoreBuilder)

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.

AddCookieTempDataProvider(IMvcCoreBuilder)

Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.

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

Parameters

Returns

The IMvcCoreBuilder.

Applies to

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.

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

Parameters

Returns

The IMvcCoreBuilder.

Applies to