Dela via


DefaultViewComponentFactory Class

Definition

Default implementation for IViewComponentFactory.

public ref class DefaultViewComponentFactory : Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentFactory
public class DefaultViewComponentFactory : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentFactory
type DefaultViewComponentFactory = class
    interface IViewComponentFactory
Public Class DefaultViewComponentFactory
Implements IViewComponentFactory
Inheritance
DefaultViewComponentFactory
Implements

Constructors

DefaultViewComponentFactory(IViewComponentActivator)

Creates a new instance of DefaultViewComponentFactory

Methods

CreateViewComponent(ViewComponentContext)

Creates a new controller for the specified context.

ReleaseViewComponent(ViewComponentContext, Object)

Releases a view component instance.

ReleaseViewComponentAsync(ViewComponentContext, Object)

Releases a view component instance asynchronously.

Applies to