This documentation is archived and is not being maintained.

CacheDependency Members

Establishes a dependency relationship between an item stored in an ASP.NET application's Cache object and a file, cache key, an array of either, or another CacheDependency object. The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.

The CacheDependency type exposes the following members.

  NameDescription
Public method CacheDependency Overloaded. Initializes a new instance of the CacheDependency class.
Top

  NameDescription
Protected method DependencyDispose Releases the resources used by the CacheDependency class and any classes that derive from CacheDependency.
Public method Dispose Releases the resources used by the CacheDependency object.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method FinishInit Completes initialization of the CacheDependency object.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GetUniqueID Retrieves a unique identifier for a CacheDependency object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method NotifyDependencyChanged Notifies the base CacheDependency object that the dependency represented by a derived CacheDependency class has changed.
Protected method SetUtcLastModified Marks the time when a dependency last changed.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property HasChanged Gets a value indicating whether the CacheDependency object has changed.
Public property UtcLastModified Gets the time when the dependency was last changed.
Top
Show: