Freezable.ReadPreamble Method

Ensures that this Freezable is being accessed from a valid thread. Implementers 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 ()
protected void ReadPreamble ()
protected function ReadPreamble ()
You cannot use methods in XAML.

Notes to Implementers: 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions