.NET Framework Class Library
DefaultViewLocationCache Class
Represents a memory cache for view locations.
Inheritance Hierarchy
System.Object
System.Web.Mvc.DefaultViewLocationCache
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
Public Class DefaultViewLocationCache _ Implements IViewLocationCache
Visual Basic (Usage)
Dim instance As DefaultViewLocationCache
C#
public class DefaultViewLocationCache : IViewLocationCache
Visual C++
public ref class DefaultViewLocationCache : IViewLocationCache
JScript
public class DefaultViewLocationCache implements IViewLocationCache
The DefaultViewLocationCache type exposes the following members.
Constructors
| 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. |
Properties
| Name | Description | |
|---|---|---|
|
TimeSpan | Gets or sets the cache time span. |
Methods
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
GetViewLocation | Retrieves the default view location by using the specified HTTP context and cache key. |
|
InsertViewLocation | Inserts the view in the specified virtual path by using the specified HTTP context, cache key, and virtual path. |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
|
Null | Creates an empty view location cache. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.See Also