Share via


DefaultViewComponentActivator Class

Definition

A default implementation of IViewComponentActivator.

public ref class DefaultViewComponentActivator : Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentActivator
public class DefaultViewComponentActivator : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator
type DefaultViewComponentActivator = class
    interface IViewComponentActivator
Public Class DefaultViewComponentActivator
Implements 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

DefaultViewComponentActivator(ITypeActivatorCache)

Initializes a new instance of DefaultViewComponentActivator class.

Methods

Create(ViewComponentContext)

Instantiates a ViewComponent.

Release(ViewComponentContext, Object)

Releases a ViewComponent instance.

Applies to