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>>, IEnumerable
Implements

Indexers

NameDescription
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.cs

Gets or sets the value of the data-* attribute corresponding to the name (e.g. "fooBar" for data-foo-bar).

public string? this[string name] { get; set; }

Methods

NameDescription
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.cs

Returns 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.cs

https://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-removeitem

public void Remove(string name)

System.Collections.IEnumerable.GetEnumerator()

DomStringMap.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.