DefaultViewComponentActivator Class

Definition

A default implementation of IViewComponentActivator.

C#
public class DefaultViewComponentActivator : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator
Inheritance
DefaultViewComponentActivator
Implements

Remarks

The DefaultViewComponentActivator can provide the current instance of ViewComponentContext to a public property of a view component marked with ViewComponentContextAttribute.

Constructors

Methods

Create(ViewComponentContext)

Instantiates a ViewComponent.

Release(ViewComponentContext, Object)

Releases a ViewComponent instance.

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2