System.Web.Hosting.VirtualPathProvider.GetCacheKey Method

Returns a cache key to use for the specified virtual path.

Syntax

public virtual string GetCacheKey (string virtualPath)

Parameters

virtualPath
The path to the virtual resource.

Returns

A cache key for the specified virtual resource.

Remarks

Use the VirtualPathProvider.GetCacheKey(string) method to provide a custom cache key for virtual resources. If you do not override the VirtualPathProvider.GetCacheKey(string) method, the virtual path is used for the cache key.

Requirements

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