Creates a new instance of [!:OleDbCacheDependency] class, using the supplied parameters.

Namespace: Alachisoft.NCache.Runtime.Dependencies
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public static DBCacheDependency CreateOleDbCacheDependency(
	string connectionString,
	string dbCacheKey
)
Visual Basic
Public Shared Function CreateOleDbCacheDependency ( 
	connectionString As String,
	dbCacheKey As String
) As DBCacheDependency
Visual C++
public:
static DBCacheDependency^ CreateOleDbCacheDependency(
	String^ connectionString, 
	String^ dbCacheKey
)

Parameters

connectionString
Type: System..::..String
The connection string for establishing a connection with the database server where the database containing above mentioned table exists.
dbCacheKey
Type: System..::..String

Return Value

Type: DBCacheDependency
A SqlCacheDependency object based on the supplied parameters.

Remarks

You need to enable notification for both the table and the database containing the table before you can use this DBCacheDependency in your application.

See Also