AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

IFreezable..::..EnforceFreezeOnMutation Method

Called by property setters before applying a new value. When this instance is frozen, logs the attempted mutation and — depending on the unified FreezeEnforceLevel appsetting — optionally throws InvalidOperationException. Implementations should no-op when IsFrozen is false.

Namespace:  AdvantageCMS.Core.Admin.Interfaces
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


void EnforceFreezeOnMutation(
	string propertyName
)

Parameters

propertyName
Type: String
The name of the property being mutated (typically passed via nameof).