Freezable.ReadPreamble Method

Definition

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.

protected:
 void ReadPreamble();
protected void ReadPreamble ();
member this.ReadPreamble : unit -> unit
Protected Sub 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().

Applies to

See also