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:
property Collection<ChangeMonitor^>^ ChangeMonitors {
	Collection<ChangeMonitor^>^ 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: