Freezable.FreezeCore(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Makes the Freezable object unmodifiable or tests whether it can be made unmodifiable.
protected:
virtual bool FreezeCore(bool isChecking);
protected virtual bool FreezeCore (bool isChecking);
abstract member FreezeCore : bool -> bool
override this.FreezeCore : bool -> bool
Protected Overridable Function FreezeCore (isChecking As Boolean) As Boolean
Parameters
- isChecking
- Boolean
true
to return an indication of whether the object can be frozen (without actually freezing it); false
to actually freeze the object.
Returns
If isChecking
is true
, this method returns true
if the Freezable can be made unmodifiable, or false
if it cannot be made unmodifiable. If isChecking
is false
, this method returns true
if the if the specified Freezable is now unmodifiable, or false
if it cannot be made unmodifiable.
Remarks
Do not call this method directly (except when calling base in an implementation). This method is called internally by the CanFreeze property (with isChecking
equal to true
) and the Freeze method (with isChecking
equal to false
).
Notes to Inheritors
Freezable implementers must override this method when the class contains data that is not stored using dependency properties.
A typical implementation would call base, then call the static Freeze(Freezable, Boolean) method on all Freezable typed properties that the class contains, returning true
only if all properties were frozen (or could have been frozen, in the case of specifying true
for isChecking
).
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기