SimpleInjectorAspNetCoreBuilderMvcCoreExtensionsAddViewComponentActivation Method

Simple Injector
Registers all application's view components in Simple Injector and instructs ASP.NET Core to let Simple Injector create those view components.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore.Mvc.Core (in SimpleInjector.Integration.AspNetCore.Mvc.Core.dll) Version: 4.6.0

public static SimpleInjectorAspNetCoreBuilder AddViewComponentActivation(
	this SimpleInjectorAspNetCoreBuilder builder


Type: SimpleInjector.Integration.AspNetCoreSimpleInjectorAspNetCoreBuilder
The builder instance.

Return Value

Type: SimpleInjectorAspNetCoreBuilder
The supplied builder instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SimpleInjectorAspNetCoreBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also