CacheEntryChangeMonitor Constructor
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the CacheEntryChangeMonitor class. This constructor is called from constructors in derived classes to initialize the base class.
protected:
CacheEntryChangeMonitor();
protected CacheEntryChangeMonitor ();
Protected Sub New ()
The CacheEntryChangeMonitor class has a parameterless constructor.
The constructor of a derived class must set the UniqueId property, begin monitoring, and call InitializationComplete() before the constructor returns. If a dependency changes before initialization is complete (for example, if a dependent cache key is not found in the cache), the constructor must call the OnChanged(Object) method. The constructor can call the Dispose() method only after InitializationComplete() is called, because Dispose() throws an exception if initialization is not completed.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: