13-001 ViewComponents IViewComponentActivator
Posted on 2015-04-27 15:36 DotNet1010 阅读(163) 评论(0) 编辑 收藏 举报接口定义:
/// <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); }