DefaultViewLocationCache 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DefaultViewLocationCache() |
初始化 DefaultViewLocationCache 类的新实例。 |
DefaultViewLocationCache(TimeSpan) |
使用指定的缓存时间跨度初始化 类的新实例 DefaultViewLocationCache 。 |
DefaultViewLocationCache()
DefaultViewLocationCache(TimeSpan)
使用指定的缓存时间跨度初始化 类的新实例 DefaultViewLocationCache 。
public DefaultViewLocationCache (TimeSpan timeSpan);
new System.Web.Mvc.DefaultViewLocationCache : TimeSpan -> System.Web.Mvc.DefaultViewLocationCache
Public Sub New (timeSpan As TimeSpan)
参数
- timeSpan
- TimeSpan
缓存时间跨度。
例外
参数的 timeSpan
Ticks 属性设置为负数。