DefaultViewComponentHelper Třída

Definice

Výchozí implementace pro IViewComponentHelper.

public ref class DefaultViewComponentHelper : Microsoft::AspNetCore::Mvc::IViewComponentHelper, Microsoft::AspNetCore::Mvc::ViewFeatures::IViewContextAware
public class DefaultViewComponentHelper : Microsoft.AspNetCore.Mvc.IViewComponentHelper, Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware
type DefaultViewComponentHelper = class
    interface IViewComponentHelper
    interface IViewContextAware
Public Class DefaultViewComponentHelper
Implements IViewComponentHelper, IViewContextAware
Dědičnost
DefaultViewComponentHelper
Implementuje

Konstruktory

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Inicializuje novou instanci DefaultViewComponentHelper.

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Inicializuje novou instanci DefaultViewComponentHelper.

Metody

Contextualize(ViewContext)

Contextualizuje instanci se zadaným viewContext.

InvokeAsync(String, Object)

Vyvolá součást zobrazení se zadaným name.

InvokeAsync(Type, Object)

Vyvolá součást zobrazení typu componentType.

Metody rozšíření

InvokeAsync(IViewComponentHelper, String)

Vyvolá součást zobrazení se zadaným nameparametrem .

InvokeAsync(IViewComponentHelper, Type)

Vyvolá součást zobrazení typu componentType.

InvokeAsync<TComponent>(IViewComponentHelper)

Vyvolá součást zobrazení typu TComponent.

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Vyvolá součást zobrazení typu TComponent.

Platí pro