Export (0) Print
Expand All

Freezable.Freeze Method

Makes a Freezable unmodifiable and sets its IsFrozen property to true, or determines whether the specified Freezable can be made unmodifiable.

Name Description
Freezable.Freeze () Makes the current object unmodifiable and sets its IsFrozen property to true.
Freezable.Freeze (Freezable, Boolean) If the isChecking parameter is set to true, this method determines whether the specified Freezable can be made unmodifiable. Otherwise, if the isChecking parameter is set to false, this method makes a Freezable unmodifiable and sets its IsFrozen property to true.

It is legal to call this method again on a Freezable object that is already unmodifiable.

To avoid the possibility of an InvalidOperationException when calling this method, check the CanFreeze property to determine whether the Freezable can be made unmodifiable before calling this method.

Community Additions

ADD
Show:
© 2014 Microsoft