DefaultViewLocationCache 构造函数

定义

重载

DefaultViewLocationCache()

初始化 DefaultViewLocationCache 类的新实例。

DefaultViewLocationCache(TimeSpan)

使用指定的缓存时间跨度初始化 类的新实例 DefaultViewLocationCache

DefaultViewLocationCache()

初始化 DefaultViewLocationCache 类的新实例。

public DefaultViewLocationCache ();
Public Sub New ()

适用于

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 属性设置为负数。

适用于