AttributeCollection

A collection of attributes.

Declaration Syntax

public class AttributeCollection : IEnumerable<KeyValuePair<string, object>>, IEnumerable, ISerializable, IAttributeCollection

Table 7: Members

Property

Item

Get or set an attribute value.

Property

Keys

The list of the available keys in the collection.

Method

Clone()

Create a clone of the currection collection.

Method

Contains(string)

Check if the collection contains an attribute.

Method

GetStringValue(string)

Gets an attribute value by its name.

Method

GetValue(string)

Gets an attribute value by its name.

Method

GetValue(string, object)

Gets an attribute value by its name.

Method

Remove(string)

Remove an attribute. The attribute cannot be removed if it was declared as static attribute.

Method

SetValue(string, object)

Set an attribute value.