System.Web.Hosting.VirtualPathProvider.GetCacheDependency Method

Creates a cache dependency based on the specified virtual paths.

Syntax

public virtual System.Web.Caching.CacheDependency GetCacheDependency (string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)

Parameters

virtualPath
The path to the primary virtual resource.
virtualPathDependencies
An array of paths to other resources required by the primary virtual resource.
utcStart
The UTC time at which the virtual resources were read.

Returns

A System.Web.Caching.CacheDependency object for the specified virtual resources.

Remarks

The default implementation of the VirtualPathProvider.GetCacheDependency(string, IEnumerable, DateTime) method returns null. To cache virtual resources for later use you must override either the VirtualPathProvider.GetCacheDependency(string, IEnumerable, DateTime) method or the VirtualPathProvider.GetFileHash(string, IEnumerable) method.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0