Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DefaultViewLocationCache Constructor (TimeSpan)

Initializes a new instance of the DefaultViewLocationCache class by using the specified cache time span.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public DefaultViewLocationCache(
	TimeSpan timeSpan
)

Parameters

timeSpan
Type: System.TimeSpan
The cache time span.
ExceptionCondition
InvalidOperationException

The Ticks attribute of the timeSpan parameter is set to a negative number.

Show:
© 2014 Microsoft. All rights reserved.