Export (0) Print
Expand All

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)

'Declaration
Public Overridable Function GetCacheKey ( _
	virtualPath As String _
) As String
'Usage
Dim instance As VirtualPathProvider
Dim virtualPath As String
Dim returnValue As String

returnValue = instance.GetCacheKey(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:
© 2014 Microsoft