Delen via


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)

Source:
MvcViewFeaturesMvcBuilderExtensions.cs
Source:
MvcViewFeaturesMvcBuilderExtensions.cs
Source:
MvcViewFeaturesMvcBuilderExtensions.cs
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

The IMvcBuilder.

Applies to

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

Source:
MvcViewFeaturesMvcBuilderExtensions.cs
Source:
MvcViewFeaturesMvcBuilderExtensions.cs
Source:
MvcViewFeaturesMvcBuilderExtensions.cs
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

The IMvcBuilder.

Applies to