Show / Hide Table of Contents

Class TagAttributeCollection

A tag collection as an attribute collection.

Inheritance
System.Object
TagAttributeCollection
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class TagAttributeCollection : IAttributeCollection

Constructors

TagAttributeCollection(TagsCollectionBase)

Creates a tag attribute collection.

Declaration
public TagAttributeCollection(TagsCollectionBase tagsCollection)
Parameters
TagsCollectionBase tagsCollection

Properties

Count

Gets the count.

Declaration
public int Count { get; }
Property Value
System.Int32

IsReadonly

Gets the readonly flag.

Declaration
public bool IsReadonly { get; }
Property Value
System.Boolean

Methods

AddOrReplace(String, String)

Adds or replaces an attribute.

Declaration
public void AddOrReplace(string key, string value)
Parameters
System.String key

System.String value

Clear()

Clears all attributes.

Declaration
public void Clear()

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<Attribute> GetEnumerator()
Returns
IEnumerator<Attribute>

RemoveKey(String)

Removes the attribute with the given key.

Declaration
public bool RemoveKey(string key)
Parameters
System.String key

Returns
System.Boolean

TryGetValue(String, out String)

Tries to get the value for the given key.

Declaration
public bool TryGetValue(string key, out string value)
Parameters
System.String key

System.String value

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.