Export (0) Print
Expand All

CacheItemPolicy.ChangeMonitors Property

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4
© 2015 Microsoft