SqlCacheDependency.CreateOutputCacheDependency(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a dependency relationship between an item that is stored in an ASP.NET application's OutputCache object and a SQL Server database table.
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
Parameters
- dependency
- String
The output-cache dependency directive.
Returns
The new dependency object.
Remarks
The following markup shows a typical output-cache dependency directive.
<%@ OutputCache Duration="3600" SqlDependency="Northwind:Employees" VaryByParam="none" %>
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.