AdvantageAttributes Methods
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.
|

