Class CustomAttributesCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of custom attributes.
public class CustomAttributesCollection : Collection<CustomAttributeBase>, IList<CustomAttributeBase>, ICollection<CustomAttributeBase>, IList, ICollection, IReadOnlyList<CustomAttributeBase>, IReadOnlyCollection<CustomAttributeBase>, IEnumerable<CustomAttributeBase>, IEnumerable
- Inheritance
-
CustomAttributesCollection
- Implements
- Inherited Members
Constructors
CustomAttributesCollection()
Creates a new custom attributes collection.
public CustomAttributesCollection()
Methods
Add(Guid, string, object)
Adds a new custom attribute to the collection with the specified values, or replaces any existing value.
public CustomAttributeBase Add(Guid identifier, string displayName, object value)
Parameters
identifier
GuidThe unique identifier of the custom attribute to add.
displayName
stringThe display name of the custom attribute.
value
objectThe value of the custom attribute.
Returns
Exists(Guid)
Determines whether a custom attribute with the specified identifier exists within the collection.
public bool Exists(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the custom attribute to locate.
Returns
- bool
A System.Boolean value that indicates whether a custom attribute with the specified identifier exists within the collection.
FindByIdentifier(Guid)
Returns the custom attribute with the specified identifier, or null if no attribute with that identifier is found.
public CustomAttributeBase FindByIdentifier(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the custom attribute to return.
Returns
- CustomAttributeBase
The custom attribute with the specified identifier.
InsertItem(int, CustomAttributeBase)
Occurs when a custom attribute is inserted.
protected override void InsertItem(int index, CustomAttributeBase item)
Parameters
index
intThe index at which the item is to be inserted.
item
CustomAttributeBaseThe item to insert.
Remove(Guid)
Removes the custom attribute with the specified identifier.
public void Remove(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the custom attribute to remove.