Dela via


ServiceBasedViewComponentActivator Class

Definition

A IViewComponentActivator that retrieves view components as services from the request's IServiceProvider.

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

Constructors

ServiceBasedViewComponentActivator()

Methods

Create(ViewComponentContext)

Instantiates a ViewComponent.

Release(ViewComponentContext, Object)

Releases a ViewComponent instance.

Applies to