ChangeMonitors Property
Collapse the table of content
Expand the table of content

CacheItemPolicy.ChangeMonitors Property

.NET Framework (current version)
 

Gets a collection of ChangeMonitor objects that are associated with a cache entry.

Namespace:   System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public Collection<ChangeMonitor> ChangeMonitors { get; }

Property Value

Type: System.Collections.ObjectModel.Collection<ChangeMonitor>

A collection of change monitors. The default is an empty collection.

You can add to or remove change monitors that are associated with a cache entry. However, the set of change monitors must be complete before you pass a CacheItemPolicy instance to an ObjectCache implementation. If you change the set of change monitors on a CacheItemPolicy object after the CacheItemPolicy object has been passed to an ObjectCache implementation, the changes have no effect.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft