FreezableObject class

SharePoint 2013

Represents an abstract base class that provides a simplified version of the Freeze functionality that is defined in the Freezable class.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public abstract class FreezableObject

Freezing an object puts the object into an irreversible read-only state that facilitates performance optimizations and sharing across threads.

An example use of this class is in the taxonomy navigation cache, which freezes its objects so that the cached instances can be returned without a copy. Freezing guarantees that the caller cannot modify the cached object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.