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

定义

确保Freezable正在从有效线程访问。Ensures 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().

适用于

另请参阅