Otter SDK Reference
Version:

AttributeCollection Class

Represents a collection of HTML attributes.

Inheritance Hierarchy

  • object
    • Inedo.Web.Controls.AttributeCollection

Syntax

public class AttributeCollection : IDictionary<string, string>, ICollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, System.Collections.IEnumerable, IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>

Constructors

Name Description
AttributeCollection

Initializes a new instance of the AttributeCollection class.

Properties

Name Description
Count

Gets the number of attributes.

Item
Keys

Gets the attribute names.

Values

Gets the attribute values.

Methods

Name Description
Add(string key, string value)

Adds an attribute name and value.

Clear

Removes all attributes.

ContainsKey(string key)

Returns a value indicating whether the specified attribute is defined.

GetEnumerator

Gets an enumerator.

Remove(string key)

Removes the specified attribute.

TryGetValue(string key, System.String& value)

Remarks

This is a specialized dictionary designed for minimal overhead, and will only be performant with a relatively small number of keys.