Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DefaultViewLocationCache Constructor (TimeSpan)
Collapse the table of content
Expand the table of content

DefaultViewLocationCache Constructor (TimeSpan)

.NET Framework 4

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.

Community Additions

ADD
Show:
© 2015 Microsoft