BitmapSource.FreezeCore(Boolean) 方法

定義

BitmapSource 的執行個體或衍生類別製作為不變的。Makes an instance of BitmapSource or a derived class immutable.

protected:
 override bool FreezeCore(bool isChecking);
protected override bool FreezeCore (bool isChecking);
override this.FreezeCore : bool -> bool
Protected Overrides Function FreezeCore (isChecking As Boolean) As Boolean

參數

isChecking
Boolean

如果這個執行個體在呼叫這個方法時應該實際將它自己凍結則為 true,否則為 falsetrue if this instance should actually freeze itself when this method is called; otherwise, false.

傳回

isCheckingtrue 時,如果可以將這個 Animatable 設定為不可修改,則這個方法會傳回 true,如果無法設定為不可修改,則會傳回 falseIf isChecking is true, this method returns true if this Animatable can be made unmodifiable, or false if it cannot be made unmodifiable.

如果 isCheckingfalse,則當這個 Animatable 現在已經是不可修改時,這個方法會傳回 true,如果它不可以成為不可修改,則會傳回 false,而副作用是會開始變更這個物件的凍結狀態。If isChecking is false, this method returns true if the if this Animatable is now unmodifiable, or false if it cannot be made unmodifiable, with the side effect of having begun to change the frozen status of this object.

適用於

另請參閱