Freezable::FreezeCore Method (Boolean)
Makes the Freezable object unmodifiable or tests whether it can be made unmodifiable.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- isChecking
-
Type:
System::Boolean
true to return an indication of whether the object can be frozen (without actually freezing it); false to actually freeze the object.
Return Value
Type: System::BooleanIf 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.
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).
Available since 3.0