SqlCacheDependency.CreateOutputCacheDependency(String) Metódus

Definíció

Függőségi kapcsolatot hoz létre egy ASP.NET alkalmazás OutputCache objektumában és egy SQL Server adatbázistáblában tárolt elem között.

public:
 static System::Web::Caching::CacheDependency ^ CreateOutputCacheDependency(System::String ^ dependency);
public static System.Web.Caching.CacheDependency CreateOutputCacheDependency(string dependency);
static member CreateOutputCacheDependency : string -> System.Web.Caching.CacheDependency
Public Shared Function CreateOutputCacheDependency (dependency As String) As CacheDependency

Paraméterek

dependency
String

A kimeneti gyorsítótár függőségi irányelve.

Válaszok

Az új függőségi objektum.

Megjegyzések

Az alábbi korrektúra egy tipikus output-cache függőségi irányelvet mutat be.

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

A következőre érvényes: