Freezable.ReadPreamble Freezable.ReadPreamble Freezable.ReadPreamble Freezable.ReadPreamble Method

定义

确保正在从有效的线程访问 FreezableEnsures that the Freezable is being accessed from a valid thread. Freezable 的继承者必须在任何 APIAPI 一开始读取不属于依赖项对象的数据成员时调用此方法。Inheritors of Freezable must call this method at the beginning of any APIAPI that reads data members that are not dependency properties.

protected:
 void ReadPreamble();
protected void ReadPreamble ();
member this.ReadPreamble : unit -> unit
Protected Sub ReadPreamble ()

继承者说明

派生的类Freezable应调用ReadPreamble()方法之前尝试访问不依赖项属性的任何成员。Classes that derive from Freezable should call the ReadPreamble() method before they attempt to access any members that are not dependency properties. WritePreamble()任何此类成员写入前,应调用方法。The WritePreamble() method should be called before any such members are written to.

此方法实际上不执行任何操作多个调用VerifyAccess()This method effectively does nothing more than call VerifyAccess().

适用于

另请参阅