Export (0) Print
Expand All

CacheItemPolicy.ChangeMonitors Property

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.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft