SqlCacheDependency.CreateOutputCacheDependency Method (String)

.NET Framework (current version)
 

Creates a dependency relationship between an item that is stored in an ASP.NET application's OutputCache object and a SQL Server database table.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public static CacheDependency CreateOutputCacheDependency(
	string dependency
)

Parameters

dependency
Type: System.String

The output-cache dependency directive.

Return Value

Type: System.Web.Caching.CacheDependency

The new dependency object.

The following markup shows a typical output-cache dependency directive.

<%@ OutputCache Duration="3600" SqlDependency="Northwind:Employees" VaryByParam="none" %>

.NET Framework
Available since 4.0
Return to top
Show: