MvcViewFeaturesMvcBuilderExtensions.AddCookieTempDataProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection.
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>)
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection.
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.
- setupAction
- Action<CookieTempDataProviderOptions>
An Action<T> to configure the provided CookieTempDataProviderOptions.
Returns
The IMvcBuilder.