SqlCacheDependency.CreateOutputCacheDependency(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立儲存在 ASP.NET 應用程式 OutputCache 物件中的項目與 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
參數
- dependency
- String
輸出快取依賴指令。
傳回
新的相依物件。
備註
以下標記顯示典型的輸出快取依賴指令。
<%@ OutputCache Duration="3600" SqlDependency="Northwind:Employees" VaryByParam="none" %>