(Preview5中已经废弃)
Namespace:
System.Web.Mvc用于获取某Action的View或Master的地址的接口
public interface IViewLocator
{
// Methods
string GetMasterLocation(RequestContext requestContext, string masterName);
string GetViewLocation(RequestContext requestContext, string viewName);
}
- GetMasterLocation:获取Master位置
- GetViewLocation:获取ViewPage位置
实现:
ViewLocator类
使用方法请见
QLeelulu的
ASP.NET MVC : 实现我们自己的视图引擎