AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeExtensions Members

The AdvantageAttributeExtensions type exposes the following members.

Methods


  Name Description
Public method Clone
Returns a deep copy of this wrapper. Each child XmlElement is cloned via CloneNode(System.Boolean) with deep: true so mutations on the clone don't affect the original (and vice versa). The clone is unfrozen regardless of source state.
Public method EnforceFreezeOnMutation
Enforces the freeze contract; logs if this instance is frozen when a mutation is attempted.
Public method Freeze
Freezes this instance; subsequent mutation attempts will be logged.
Public method Get
Lookup a child extension element by local name. Returns null if no element with that name is present.

Properties


  Name Description
Public property IsEmpty
true when no extensions are currently registered. Used by SetExtension(String, XmlElement) to null the wrapper out so the on-disk XML doesn't carry an empty <Extensions/> element.
Public property IsFrozen
Checks whether this AdvantageAttributeExtensions is frozen. Runtime-only flag — never serialized.
Public property Items
The child extension elements. Each element's LocalName identifies which feature owns it. Direct mutation is allowed but the convenience helpers Get(String) / Set(String, XmlElement) handle the array-array juggling and duplicate-name replacement.