DefaultViewComponentActivator Třída

Definice

Výchozí implementace 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
Dědičnost
DefaultViewComponentActivator
Implementuje

Poznámky

DefaultViewComponentActivatorMůže poskytovat aktuální instanci ViewComponentContext pro veřejnou vlastnost komponenty zobrazení označené jako ViewComponentContextAttribute .

Konstruktory

DefaultViewComponentActivator(ITypeActivatorCache)

Inicializuje novou instanci DefaultViewComponentActivator třídy.

Metody

Create(ViewComponentContext)

Vytvoří instanci komponenty ViewComponent.

Release(ViewComponentContext, Object)

Uvolní instanci ViewComponent.

Platí pro