Sdílet prostřednictvím


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

Může DefaultViewComponentActivator poskytnout aktuální instanci ViewComponentContext pro veřejnou vlastnost komponenty zobrazení označené pomocí 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