System.Web.Caching.CacheDependency.GetUniqueID Method

Retrieves a unique identifier for a System.Web.Caching.CacheDependency object.

Syntax

public virtual string GetUniqueID ()

Returns

The unique identifier for the System.Web.Caching.CacheDependency object.

Remarks

This method can be particularly useful for tracking multiple instances of the System.Web.Caching.CacheDependency class associated with an item or an application.

The identifier is a combination of either the file name (for a file dependency) or the key name (for a cache-key dependency) and a string that this method assigns to the dependency. In classes that derive from the System.Web.Caching.CacheDependency class, you can override this method to customize how it generates the unique identifier.

Requirements

Namespace: System.Web.Caching
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0