DomStringMap Class
The custom data attributes of an element (https://html.spec.whatwg.org/multipage/dom.html#domstringmap).
public sealed class DomStringMap : IEnumerable<KeyValuePair<string, string>>, IEnumerableIndexers
| Name | Description |
|---|---|
| this[string] | Gets or sets the value of the data-* attribute corresponding to the name (e.g. "fooBar" for data-foo-bar). |
this[string]
DomStringMap.csGets or sets the value of the data-* attribute corresponding to the name (e.g. "fooBar" for data-foo-bar).
Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| Remove(string) | https://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-removeitem |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
DomStringMap.csReturns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()Returns
IEnumerator<KeyValuePair<string, string>> An enumerator that can be used to iterate through the collection.
Remove(string)
DomStringMap.cshttps://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-removeitem