Share via


DefaultViewLocationCache 类

定义

表示视图位置的内存缓存。

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 上下文、缓存键和虚拟路径在指定的虚拟路径中插入视图。

适用于