Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Freezable.FreezeCore Method

Makes this Freezable object unmodifiable or determines whether it can be made unmodifiable.

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

protected virtual bool FreezeCore (
	bool isChecking
)
protected boolean FreezeCore (
	boolean isChecking
)
protected function FreezeCore (
	isChecking : boolean
) : boolean
You cannot use methods in XAML.

Parameters

isChecking

true if the Freezable should simply return whether it can be frozen. false if the Freezable instance should actually freeze itself when this method is called.

Return Value

If isChecking is true, this method returns true if this 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, 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: 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 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 passing through a false value for isChecking).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft