MvcViewFeaturesMvcBuilderExtensions.AddCookieTempDataProvider 方法

定义

重载

AddCookieTempDataProvider(IMvcBuilder)

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider

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

参数

返回

IMvcBuilder

适用于

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

参数

setupAction
Action<CookieTempDataProviderOptions>

用于配置所提供的 CookieTempDataProviderOptionsAction<T>

返回

IMvcBuilder

适用于