Uređivanje

Dijeli putem


CacheItemPolicy.ChangeMonitors Property

Definition

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

public:
 property System::Collections::ObjectModel::Collection<System::Runtime::Caching::ChangeMonitor ^> ^ ChangeMonitors { System::Collections::ObjectModel::Collection<System::Runtime::Caching::ChangeMonitor ^> ^ get(); };
public System.Collections.ObjectModel.Collection<System.Runtime.Caching.ChangeMonitor> ChangeMonitors { get; }
member this.ChangeMonitors : System.Collections.ObjectModel.Collection<System.Runtime.Caching.ChangeMonitor>
Public ReadOnly Property ChangeMonitors As Collection(Of ChangeMonitor)

Property Value

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

Remarks

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.

Applies to