MvcViewFeaturesMvcCoreBuilderExtensions.AddCookieTempDataProvider 方法

定义

重载

AddCookieTempDataProvider(IMvcCoreBuilder)

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider。 还注册默认视图服务。

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider。 还注册默认视图服务。

AddCookieTempDataProvider(IMvcCoreBuilder)

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

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider。 还注册默认视图服务。

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

参数

返回

IMvcCoreBuilder

适用于

AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)

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

CookieTempDataProvider 注册为 中的IServiceCollection默认值ITempDataProvider。 还注册默认视图服务。

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

参数

setupAction
Action<CookieTempDataProviderOptions>

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

返回

IMvcCoreBuilder

适用于