AdvantageAttributes Members
The AdvantageAttributes type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
Add(String, Int32) |
Adds the specified key.
|
|
|
Add(String, Boolean) |
Adds the specified key.
|
|
|
Add(String, String) |
Adds the specified key.
|
|
|
Add(String, Guid) |
Adds the specified key.
|
|
|
Add(String, DateTime) |
Adds the specified key.
|
|
|
Add<(Of <<'(T>)>>)(String, T) |
Adds the specified key.
|
|
|
Clone |
Deep-clones this instance. Each AdvantageAttribute in the collection
is deep-cloned (preserving its AdvantageAttributeType),
and Extensions is deep-cloned via its own clone. The returned clone is unfrozen.
|
|
|
ContainsKey |
Determines whether the collection contains an attribute with the given key.
|
|
|
EnforceFreezeOnMutation |
Enforces the freeze contract; logs if this instance is frozen when a mutation is attempted.
|
|
|
Freeze |
Freezes this instance and all contained attributes; subsequent mutation attempts will be logged.
|
|
|
GetAttribute(String) |
Gets the attribute.
|
|
|
GetAttribute<(Of <<'(T>)>>)(String) |
Gets the attribute.
|
|
|
GetBool |
Gets a boolean attribute value by key. Returns false when the key is absent.
|
|
|
GetDateTime |
Gets the date time. Returns MinValue when the key is absent.
|
|
|
GetExtension |
Lookup an extension element by local name. Returns null when no extension
with that name is registered, or when Extensions itself is null.
|
|
|
GetGuid |
Gets the unique identifier. Returns Empty when the key is absent or value is empty.
|
|
|
GetInt |
Gets the int. Returns 0 when the key is absent.
|
|
|
GetString |
Gets the string. Returns null when the key is absent.
|
|
|
GettAttribute<(Of <<'(T>)>>) | Obsolete.
Misspelled alias for [GetAttribute{T}(string)]. Use GetAttribute instead.
|
|
|
IsNull |
Returns true when the key is absent OR its stored Obj is null.
|
|
|
SetExtension |
Set or replace an extension element by local name. Pass null as the element
to remove the extension. The wrapper collapses to null when no extensions
remain, so the on-disk XML stays clean.
|
Properties
| Name | Description | |
|---|---|---|
|
|
AttributeCollection |
Gets or sets the attribute collection.
|
|
|
Extensions |
Side-channel for feature extensions that need structured XML alongside the attribute
bag. Multiple features coexist by claiming distinct element names (e.g.
LocalizedSlots for the localization layer). Core treats the child elements
as opaque XML — feature libraries own parse/emit via GetExtension(String) /
SetExtension(String, XmlElement). Null when no extensions are present — the wrapper
element is omitted from the on-disk XML entirely.
|
|
|
IsFrozen |
Checks whether this AdvantageAttributes is frozen. Runtime-only flag — never serialized.
|

