Freezable.FreezeCore Method

Makes the Freezable object unmodifiable or tests whether it can be made unmodifiable.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

'Declaration
Protected Overridable Function FreezeCore ( _
	isChecking As Boolean _
) As Boolean

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.Boolean
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.

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).

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft