DefaultViewLocationCache 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示视图位置的内存缓存。
public class DefaultViewLocationCache : System.Web.Mvc.IViewLocationCache
type DefaultViewLocationCache = class
interface IViewLocationCache
Public Class DefaultViewLocationCache
Implements IViewLocationCache
- 继承
-
DefaultViewLocationCache
- 实现
构造函数
DefaultViewLocationCache() |
初始化 DefaultViewLocationCache 类的新实例。 |
DefaultViewLocationCache(TimeSpan) |
使用指定的缓存时间跨度初始化 类的新实例 DefaultViewLocationCache 。 |
字段
Null |
创建空视图位置缓存。 |
属性
TimeSpan |
获取或设置缓存时间跨度。 |
方法
GetViewLocation(HttpContextBase, String) |
使用指定的 HTTP 上下文和缓存键检索默认的视图位置。 |
InsertViewLocation(HttpContextBase, String, String) |
使用指定的 HTTP 上下文、缓存键和虚拟路径在指定的虚拟路径中插入视图。 |