AttributeDictionary Class

A dictionary for HTML attributes.

Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public class AttributeDictionary : IDictionary<string, string>, ICollection<KeyValuePair<string, string>>, IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable
class Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary

Methods

Add(System.Collections.Generic.KeyValuePair<System.String, System.String>)
public void Add(KeyValuePair<string, string> item)
Add(System.String, System.String)
public void Add(string key, string value)
Clear()
public void Clear()
Contains(System.Collections.Generic.KeyValuePair<System.String, System.String>)
Return type:System.Boolean
public bool Contains(KeyValuePair<string, string> item)
ContainsKey(System.String)
Return type:System.Boolean
public bool ContainsKey(string key)
CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.String>[], System.Int32)
public void CopyTo(KeyValuePair<string, string>[] array, int arrayIndex)
GetEnumerator()
Return type:Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Enumerator
public AttributeDictionary.Enumerator GetEnumerator()
Remove(System.Collections.Generic.KeyValuePair<System.String, System.String>)
Return type:System.Boolean
public bool Remove(KeyValuePair<string, string> item)
Remove(System.String)
Return type:System.Boolean
public bool Remove(string key)
GetEnumerator()
Return type:System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String>>
IEnumerator<KeyValuePair<string, string>> IEnumerable<KeyValuePair<string, string>>.GetEnumerator()
GetEnumerator()
Return type:System.Collections.IEnumerator
IEnumerator IEnumerable.GetEnumerator()
TryGetValue(System.String, out System.String)
Return type:System.Boolean
public bool TryGetValue(string key, out string value)

Properties

Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Count
Return type:System.Int32
public int Count { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.IsReadOnly
Return type:System.Boolean
public bool IsReadOnly { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Item[System.String]
Return type:System.String
public string this[string key] { get; set; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Keys
Return type:System.Collections.Generic.ICollection<System.String>
public ICollection<string> Keys { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Keys
Return type:System.Collections.Generic.IEnumerable<System.String>
IEnumerable<string> IReadOnlyDictionary<string, string>.Keys { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Values
Return type:System.Collections.Generic.IEnumerable<System.String>
IEnumerable<string> IReadOnlyDictionary<string, string>.Values { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Values
Return type:System.Collections.Generic.ICollection<System.String>
public ICollection<string> Values { get; }