Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetCacheKey Method

VirtualPathProvider.GetCacheKey Method

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

Namespace: System.Web.Hosting
Assembly: System.Web (in system.web.dll)

public virtual string GetCacheKey (
	string virtualPath
)
public String GetCacheKey (
	String virtualPath
)
public function GetCacheKey (
	virtualPath : String
) : String
Not applicable.

Parameters

virtualPath

The path to the virtual resource.

Return Value

A cache key for the specified virtual resource.

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

Notes to Inheritors: Only override the default GetCacheKey method if creating a cache key based on the virtual path will not work for your application.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft