MvcViewFeaturesMvcCoreBuilderExtensions.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(IMvcCoreBuilder) |
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services. |
AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>) |
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services. |
AddCookieTempDataProvider(IMvcCoreBuilder)
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.
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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
Returns
The IMvcCoreBuilder.
Applies to
AddCookieTempDataProvider(IMvcCoreBuilder, Action<CookieTempDataProviderOptions>)
Registers CookieTempDataProvider as the default ITempDataProvider in the IServiceCollection. Also registers the default view services.
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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<CookieTempDataProviderOptions>
An Action<T> to configure the provided CookieTempDataProviderOptions.
Returns
The IMvcCoreBuilder.