ReadPreamble Method

Freezable.ReadPreamble Method ()


Ensures that the Freezable is being accessed from a valid thread. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

protected void ReadPreamble()

Notes to Inheritors:

Classes that derive from Freezable should call the ReadPreamble method before they attempt to access any members that are not dependency properties. The WritePreamble method should be called before any such members are written to.

This method effectively does nothing more than call VerifyAccess.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft