AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributes Methods

The AdvantageAttributes type exposes the following members.

Methods


  Name Description
Public method Add(String, Int32)
Adds the specified key.
Public method Add(String, Boolean)
Adds the specified key.
Public method Add(String, String)
Adds the specified key.
Public method Add(String, Guid)
Adds the specified key.
Public method Add(String, DateTime)
Adds the specified key.
Public method Add<(Of <<'(T>)>>)(String, T)
Adds the specified key.
Public method 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.
Public method ContainsKey
Determines whether the collection contains an attribute with the given key.
Public method EnforceFreezeOnMutation
Enforces the freeze contract; logs if this instance is frozen when a mutation is attempted.
Public method Freeze
Freezes this instance and all contained attributes; subsequent mutation attempts will be logged.
Public method GetAttribute(String)
Gets the attribute.
Public method GetAttribute<(Of <<'(T>)>>)(String)
Gets the attribute.
Public method GetBool
Gets a boolean attribute value by key. Returns false when the key is absent.
Public method GetDateTime
Gets the date time. Returns MinValue when the key is absent.
Public method GetExtension
Lookup an extension element by local name. Returns null when no extension with that name is registered, or when Extensions itself is null.
Public method GetGuid
Gets the unique identifier. Returns Empty when the key is absent or value is empty.
Public method GetInt
Gets the int. Returns 0 when the key is absent.
Public method GetString
Gets the string. Returns null when the key is absent.
Public method GettAttribute<(Of <<'(T>)>>) Obsolete.
Misspelled alias for [GetAttribute{T}(string)]. Use GetAttribute instead.
Public method IsNull
Returns true when the key is absent OR its stored Obj is null.
Public method 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.