This documentation is archived and is not being maintained.

FreezableCollection<T>.FreezeCore Method

Makes this FreezableCollection<T> object unmodifiable or determines whether it can be made unmodifiable.

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

protected override bool FreezeCore(
	bool isChecking


Type: System.Boolean
true if the FreezableCollection<T> should simply return whether it can be frozen. false if the FreezableCollection<T> instance should actually freeze itself when this method is called.

Return Value

Type: System.Boolean
If isChecking is true, this method returns true if this FreezableCollection<T> 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 FreezableCollection<T> 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.

Do not call this method directly (except when calling base in an implementation). This method is called internally by CanFreeze (with isChecking equal to true) and Freeze (with isChecking equal to false).

Notes to Implementers

For information about when to override this method, see Freezable.FreezeCore.

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