Aracılığıyla paylaş


DefaultViewComponentActivator Sınıf

Tanım

Varsayılan uygulamasıdır 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
Devralma
DefaultViewComponentActivator
Uygulamalar

Açıklamalar

, DefaultViewComponentActivator ile ViewComponentContextAttributeişaretlenmiş bir görünüm bileşeninin genel özelliğine geçerli örneğini ViewComponentContext sağlayabilir.

Oluşturucular

DefaultViewComponentActivator(ITypeActivatorCache)

Yeni bir DefaultViewComponentActivator sınıfı örneğini başlatır.

Yöntemler

Create(ViewComponentContext)

ViewComponent örneği oluşturur.

Release(ViewComponentContext, Object)

ViewComponent örneğini serbest bırakır.

Şunlara uygulanır