Share via


DefaultViewComponentHelper Class

Definition

Default implementation for 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
Inheritance
DefaultViewComponentHelper
Implements

Constructors

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

Initializes a new instance of DefaultViewComponentHelper.

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

Initializes a new instance of DefaultViewComponentHelper.

Methods

Contextualize(ViewContext)

Contextualizes the instance with the specified viewContext.

InvokeAsync(String, Object)

Invokes a view component with the specified name.

InvokeAsync(Type, Object)

Invokes a view component of type componentType.

Extension Methods

InvokeAsync(IViewComponentHelper, String)

Invokes a view component with the specified name.

InvokeAsync(IViewComponentHelper, Type)

Invokes a view component of type componentType.

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Invokes a view component of type TComponent.

InvokeAsync<TComponent>(IViewComponentHelper)

Invokes a view component of type TComponent.

Applies to