Add CacheSyncDependency to the cache item.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public override bool AddDependency(
	string key,
	CacheSyncDependency syncDependency
)
Visual Basic
Public Overrides Function AddDependency ( 
	key As String,
	syncDependency As CacheSyncDependency
) As Boolean
Visual C++
public:
virtual bool AddDependency(
	String^ key, 
	CacheSyncDependency^ syncDependency
) override

Parameters

key
Type: System..::..String
key used to reference the required object
syncDependency
Type: Alachisoft.NCache.Web.Caching..::..CacheSyncDependency
CacheSyncDependency to be added

Return Value

Type: Boolean
True if the operation successeded otherwise false

See Also