13-001 ViewComponents IViewComponentActivator

接口定义:

  /// <summary>
    /// Provides methods to activate an instantiated ViewComponent
    /// </summary>
    public interface IViewComponentActivator
    {
        /// <summary>
        /// When implemented in a type, activates an instantiated ViewComponent.
        /// </summary>
        /// <param name="viewComponent">The ViewComponent to activate.</param>
        /// <param name="context">The <see cref="ViewContext"/> for the executing <see cref="ViewComponent"/>.</param>
        void Activate(object viewComponent, ViewContext context);
    }
原文地址:https://www.cnblogs.com/DotNet1010/p/4460353.html