SqlCacheDependency.CreateOutputCacheDependency(String) Metoda

Definicja

Tworzy relację zależności między elementem przechowywanym w obiekcie aplikacji OutputCache ASP.NET a tabelą bazy danych SQL Server.

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

Parametry

dependency
String

Dyrektywa zależności output-cache.

Zwraca

Nowy obiekt zależności.

Uwagi

Na poniższej adiustacji przedstawiono typową dyrektywę zależności pamięci podręcznej danych wyjściowych.

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

Dotyczy