Share via


AttributeDictionary Class

Definition

A dictionary for HTML attributes.

public ref class AttributeDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>>, System::Collections::Generic::IDictionary<System::String ^, System::String ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::String ^>
public class AttributeDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,string>>, System.Collections.Generic.IDictionary<string,string>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,string>>, System.Collections.Generic.IReadOnlyDictionary<string,string>
type AttributeDictionary = class
    interface IDictionary<string, string>
    interface ICollection<KeyValuePair<string, string>>
    interface seq<KeyValuePair<string, string>>
    interface IEnumerable
    interface IReadOnlyDictionary<string, string>
    interface IReadOnlyCollection<KeyValuePair<string, string>>
type AttributeDictionary = class
    interface ICollection<KeyValuePair<string, string>>
    interface seq<KeyValuePair<string, string>>
    interface IEnumerable
    interface IDictionary<string, string>
    interface IReadOnlyCollection<KeyValuePair<string, string>>
    interface IReadOnlyDictionary<string, string>
Public Class AttributeDictionary
Implements ICollection(Of KeyValuePair(Of String, String)), IDictionary(Of String, String), IEnumerable(Of KeyValuePair(Of String, String)), IReadOnlyCollection(Of KeyValuePair(Of String, String)), IReadOnlyDictionary(Of String, String)
Inheritance
AttributeDictionary
Implements

Constructors

AttributeDictionary()

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

Item[String]

Gets or sets the element with the specified key.

Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

Values

Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

Methods

Add(KeyValuePair<String,String>)

Adds an item to the ICollection<T>.

Add(String, String)

Adds an element with the provided key and value to the IDictionary<TKey,TValue>.

Clear()

Removes all items from the ICollection<T>.

Contains(KeyValuePair<String,String>)

Determines whether the ICollection<T> contains a specific value.

ContainsKey(String)

Determines whether the IDictionary<TKey,TValue> contains an element with the specified key.

CopyTo(KeyValuePair<String,String>[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

GetEnumerator() System.Object.GetEnumerator
Remove(KeyValuePair<String,String>)

Removes the first occurrence of a specific object from the ICollection<T>.

Remove(String)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

TryGetValue(String, String) System.Object.TryGetValue(System.String,System.String@)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<KeyValuePair<String,String>>.GetEnumerator()

Returns an enumerator that iterates through the collection.

IReadOnlyDictionary<String,String>.Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

IReadOnlyDictionary<String,String>.Values

Gets an enumerable collection that contains the values in the read-only dictionary.

Applies to