Share via


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)

Kontextově vytvoří instanci se zadaným viewContextobjektem .

InvokeAsync(String, Object)

Vyvolá komponentu zobrazení se zadaným nameparametrem .

InvokeAsync(Type, Object)

Vyvolá komponentu zobrazení typu componentType.

Metody rozšíření

InvokeAsync(IViewComponentHelper, String)

Vyvolá komponentu zobrazení se zadaným nameparametrem .

InvokeAsync(IViewComponentHelper, Type)

Vyvolá komponentu zobrazení typu componentType.

InvokeAsync<TComponent>(IViewComponentHelper)

Vyvolá komponentu zobrazení typu TComponent.

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Vyvolá komponentu zobrazení typu TComponent.

Platí pro