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.1.0.0 (4.1.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

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