Creates a frozen copy of the
using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. Freezable
Using this method is similar to creating a copy using the
and then freezing it with the CloneCurrentValue method. Freeze
and GetAsFrozen methods can improve copying performance because they do not clone GetCurrentValueAsFrozen sub-objects that are already frozen; they only copy them by reference. Freezable
The following table summarizes the differences between the
and GetAsFrozen methods. GetCurrentValueAsFrozen
GetAsFrozen method behavior
GetCurrentValueAsFrozen method behavior
Copying a dependency property that has an expression
The method throws an
because it cannot InvalidOperationException the property. Freeze
The current value of the expression is copied, but not the expression itself.
Copying an animated dependency property
The property's base (non-animated) value is copied. Animations are not copied.
The property's current animated value is copied. Animations are not copied.
Note that unset properties are not copied, nor are read-only properties.
To create a copy of the
that is not frozen, use the Freezable method. CloneCurrentValue Notes to Inheritors
This method uses the virtual
method to produce the clone. GetCurrentValueAsFrozenCore .NET Framework
Supported in: 4.6, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
( 1500 characters remaining)
Thank you for your feedback