Udostępnij za pośrednictwem


ServiceBasedViewComponentActivator Klasa

Definicja

Element IViewComponentActivator , który pobiera składniki widoku jako usługi z żądania 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
Dziedziczenie
ServiceBasedViewComponentActivator
Implementuje

Konstruktory

ServiceBasedViewComponentActivator()

Element IViewComponentActivator , który pobiera składniki widoku jako usługi z żądania IServiceProvider.

Metody

Create(ViewComponentContext)

Tworzy wystąpienie elementu ViewComponent.

Release(ViewComponentContext, Object)

Zwalnia wystąpienie ViewComponent.

Dotyczy