IViewComponentActivator Interface

Summary

Provides methods to activate an instantiated ViewComponent

Syntax

public interface IViewComponentActivator

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ViewComponents.IViewComponentActivator

Methods

Activate(System.Object, Microsoft.AspNet.Mvc.ViewComponentContext)

When implemented in a type, activates an instantiated ViewComponent.

Arguments:
  • viewComponent (System.Object) – The ViewComponent to activate.
  • context (Microsoft.AspNet.Mvc.ViewComponentContext) – The [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml) for the executing [Microsoft.AspNet.Mvc.ViewComponent](Microsoft.AspNet.Mvc.ViewComponent.yml).
void Activate(object viewComponent, ViewComponentContext context)