Export (0) Print
Expand All

ChangeMonitor.InitializationComplete Method

Called from the constructor of derived classes to indicate that initialization is finished.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

Protected Sub InitializationComplete

If a dependency changes before initialization is complete in a derived class, the constructor of the derived class must invoke the OnChanged method.

When the OnChanged method is invoked, the HasChanged property is automatically set to true by the change monitor. As a result, when the change monitor's constructor calls the InitializationComplete method, the base class will automatically call the Dispose method. If initialization is complete, the OnChanged method automatically disposes the derived change-monitor instance.

Notes to Inheritors

The constructor of a derived class must call the base InitializationComplete method before the constructor returns. The constructor of a derived class can call the Dispose method only after InitializationComplete is called, because the Dispose method throws an exception if initialization is not completed.

.NET Framework

Supported in: 4.5.2, 4.5.1, 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