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 following tables list the members exposed by the CacheDependency type.

(see also Protected Constructors )
  Name Description
Public method CacheDependency Overloaded. Initializes a new instance of the CacheDependency class.
Top

  Name Description
Protected method CacheDependency Overloaded. Initializes a new instance of the CacheDependency class.
Top

  Name Description
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

(see also Protected Methods )
  Name Description
Public method Dispose Releases the resources used by the CacheDependency object.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from 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.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method DependencyDispose Releases the resources used by the CacheDependency class and any classes that derive from CacheDependency.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method FinishInit Completes initialization of the 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.
Top

Community Additions

ADD
Show: