Share via


DefaultViewComponentActivator Klasse

Definition

Eine Standardimplementierung von IViewComponentActivator.

public ref class DefaultViewComponentActivator : Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentActivator
public class DefaultViewComponentActivator : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator
type DefaultViewComponentActivator = class
    interface IViewComponentActivator
Public Class DefaultViewComponentActivator
Implements IViewComponentActivator
Vererbung
DefaultViewComponentActivator
Implementiert

Hinweise

Der DefaultViewComponentActivator kann die aktuelle instance von ViewComponentContext für eine öffentliche Eigenschaft einer Ansichtskomponente bereitstellen, die mit ViewComponentContextAttributegekennzeichnet ist.

Konstruktoren

DefaultViewComponentActivator(ITypeActivatorCache)

Initialisiert eine neue Instanz der DefaultViewComponentActivator-Klasse.

Methoden

Create(ViewComponentContext)

Instanziiert einen ViewComponent.

Release(ViewComponentContext, Object)

Gibt eine ViewComponent-instance frei.

Gilt für: