13 instantiations of TagHelperAttribute
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Razor (2)
Microsoft.AspNetCore.Razor.Runtime (2)
124 references to TagHelperAttribute
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.TagHelpers (21)
Microsoft.AspNetCore.Razor (95)
TagHelpers\ReadOnlyTagHelperAttributeList.cs (48)
9/// A read-only collection of <see cref="TagHelperAttribute"/>s.
11public abstract class ReadOnlyTagHelperAttributeList : ReadOnlyCollection<TagHelperAttribute>
18: base(new List<TagHelperAttribute>())
27public ReadOnlyTagHelperAttributeList(IList<TagHelperAttribute> attributes)
33/// Gets the first <see cref="TagHelperAttribute"/> with <see cref="TagHelperAttribute.Name"/>
37/// The <see cref="TagHelperAttribute.Name"/> of the <see cref="TagHelperAttribute"/> to get.
39/// <returns>The first <see cref="TagHelperAttribute"/> with <see cref="TagHelperAttribute.Name"/>
43public TagHelperAttribute this[string name]
55var attribute = items[i];
67/// Determines whether a <see cref="TagHelperAttribute"/> with <see cref="TagHelperAttribute.Name"/>
70/// <param name="name">The <see cref="TagHelperAttribute.Name"/> of the
71/// <see cref="TagHelperAttribute"/> to get.</param>
73/// <c>true</c> if a <see cref="TagHelperAttribute"/> with the same
74/// <see cref="TagHelperAttribute.Name"/> exists in the collection; otherwise, <c>false</c>.
83/// Retrieves the first <see cref="TagHelperAttribute"/> with <see cref="TagHelperAttribute.Name"/>
86/// <param name="name">The <see cref="TagHelperAttribute.Name"/> of the
87/// <see cref="TagHelperAttribute"/> to get.</param>
88/// <param name="attribute">When this method returns, the first <see cref="TagHelperAttribute"/> with
89/// <see cref="TagHelperAttribute.Name"/> matching <paramref name="name"/>, if found; otherwise,
91/// <returns><c>true</c> if a <see cref="TagHelperAttribute"/> with the same
92/// <see cref="TagHelperAttribute.Name"/> exists in the collection; otherwise, <c>false</c>.</returns>
94public bool TryGetAttribute(string name, out TagHelperAttribute attribute)
104/// Retrieves <see cref="TagHelperAttribute"/>s in the collection with
105/// <see cref="TagHelperAttribute.Name"/> matching <paramref name="name"/>.
107/// <param name="name">The <see cref="TagHelperAttribute.Name"/> of the
108/// <see cref="TagHelperAttribute"/>s to get.</param>
109/// <param name="attributes">When this method returns, the <see cref="TagHelperAttribute"/>s with
110/// <see cref="TagHelperAttribute.Name"/> matching <paramref name="name"/>.</param>
111/// <returns><c>true</c> if at least one <see cref="TagHelperAttribute"/> with the same
112/// <see cref="TagHelperAttribute.Name"/> exists in the collection; otherwise, <c>false</c>.</returns>
114public bool TryGetAttributes(string name, out IReadOnlyList<TagHelperAttribute> attributes)
119List<TagHelperAttribute> matchedAttributes = null;
125var attribute = items[i];
130matchedAttributes = new List<TagHelperAttribute>();
136attributes = matchedAttributes ?? (IReadOnlyList<TagHelperAttribute>)Array.Empty<TagHelperAttribute>();
142/// Searches for a <see cref="TagHelperAttribute"/> who's <see cref="TagHelperAttribute.Name"/>
146/// <param name="name">The <see cref="TagHelperAttribute.Name"/> to locate in the collection.</param>
147/// <returns>The zero-based index of the first matching <see cref="TagHelperAttribute"/> within the collection,
171/// <see cref="TagHelperAttribute.Name"/>.</param>
174/// <see cref="TagHelperAttribute.Name"/>.</returns>
175protected static bool NameEquals(string name, TagHelperAttribute attribute)
Microsoft.AspNetCore.Razor.Runtime (6)