DefaultViewLocationCache Constructor
Initializes a new instance of the DefaultViewLocationCache class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | DefaultViewLocationCache() | Initializes a new instance of the DefaultViewLocationCache class. |
![]() | DefaultViewLocationCache(TimeSpan) | Initializes a new instance of the DefaultViewLocationCache class by using the specified cache time span. |
DefaultViewLocationCache Constructor ()
Initializes a new instance of the DefaultViewLocationCache class.
DefaultViewLocationCache Constructor (TimeSpan)
Initializes a new instance of the DefaultViewLocationCache class by using the specified cache time span.
Parameters
- timeSpan
-
Type:
System.TimeSpan
The cache time span.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Ticks attribute of the timeSpan parameter is set to a negative number. |
Show:
