TagHelperAttributeList Class

Definition

A collection of TagHelperAttributes.

public ref class TagHelperAttributeList : Microsoft::AspNetCore::Razor::TagHelpers::ReadOnlyTagHelperAttributeList, System::Collections::Generic::ICollection<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^>, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^>, System::Collections::Generic::IList<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^>
public class TagHelperAttributeList : Microsoft.AspNetCore.Razor.TagHelpers.ReadOnlyTagHelperAttributeList, System.Collections.Generic.ICollection<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute>, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute>, System.Collections.Generic.IList<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute>
type TagHelperAttributeList = class
    inherit ReadOnlyTagHelperAttributeList
    interface IList<TagHelperAttribute>
    interface ICollection<TagHelperAttribute>
    interface seq<TagHelperAttribute>
    interface IEnumerable
type TagHelperAttributeList = class
    inherit ReadOnlyTagHelperAttributeList
    interface ICollection<TagHelperAttribute>
    interface seq<TagHelperAttribute>
    interface IEnumerable
    interface IList<TagHelperAttribute>
Public Class TagHelperAttributeList
Inherits ReadOnlyTagHelperAttributeList
Implements ICollection(Of TagHelperAttribute), IEnumerable(Of TagHelperAttribute), IList(Of TagHelperAttribute)
Inheritance
Implements

Constructors

TagHelperAttributeList()

Instantiates a new instance of TagHelperAttributeList with an empty collection.

TagHelperAttributeList(IEnumerable<TagHelperAttribute>)

Instantiates a new instance of TagHelperAttributeList with the specified attributes.

TagHelperAttributeList(List<TagHelperAttribute>)

Instantiates a new instance of TagHelperAttributeList with the specified attributes.

Properties

Item[Int32]

Gets or sets the element at the specified index.

Item[String]

Gets the first TagHelperAttribute with Name matching name.

(Inherited from ReadOnlyTagHelperAttributeList)

Methods

Add(String, Object)

Adds a TagHelperAttribute to the end of the collection with the specified name and value.

Add(TagHelperAttribute)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

ContainsName(String)

Determines whether a TagHelperAttribute with Name matching name exists in the collection.

(Inherited from ReadOnlyTagHelperAttributeList)
IndexOfName(String)

Searches for a TagHelperAttribute who's Name case-insensitively matches name and returns the zero-based index of the first occurrence.

(Inherited from ReadOnlyTagHelperAttributeList)
Insert(Int32, TagHelperAttribute)

Inserts an item to the IList<T> at the specified index.

Remove(TagHelperAttribute)

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

RemoveAll(String)

Removes all TagHelperAttributes with Name matching name.

RemoveAt(Int32)

Removes the IList<T> item at the specified index.

SetAttribute(String, Object)

Replaces the first TagHelperAttribute with Name matching name and removes any additional matching TagHelperAttributes. If a matching TagHelperAttribute is not found, adds a TagHelperAttribute with name and value to the end of the collection.

SetAttribute(TagHelperAttribute)

Replaces the first TagHelperAttribute with Name matching attribute's Name and removes any additional matching TagHelperAttributes. If a matching TagHelperAttribute is not found, adds the specified attribute to the end of the collection.

TryGetAttribute(String, TagHelperAttribute)

Retrieves the first TagHelperAttribute with Name matching name.

(Inherited from ReadOnlyTagHelperAttributeList)
TryGetAttributes(String, IReadOnlyList<TagHelperAttribute>)

Retrieves TagHelperAttributes in the collection with Name matching name.

(Inherited from ReadOnlyTagHelperAttributeList)

Explicit Interface Implementations

ICollection<TagHelperAttribute>.IsReadOnly

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

Applies to