共用方式為


MvcViewFeaturesMvcBuilderExtensions.AddCookieTempDataProvider 方法

定義

多載

AddCookieTempDataProvider(IMvcBuilder)

CookieTempDataProvider在 中 IServiceCollection 註冊為預設值 ITempDataProvider

AddCookieTempDataProvider(IMvcBuilder, Action<CookieTempDataProviderOptions>)

CookieTempDataProvider在 中 IServiceCollection 註冊為預設值 ITempDataProvider

AddCookieTempDataProvider(IMvcBuilder)

來源:
MvcViewFeaturesMvcBuilderExtensions.cs
來源:
MvcViewFeaturesMvcBuilderExtensions.cs
來源:
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>)

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

參數

傳回

IMvcBuilder

適用於