ReadOnlyTagHelperAttributeList Class

Definition

A read-only collection of TagHelperAttributes.

public ref class ReadOnlyTagHelperAttributeList abstract : System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^>
public abstract class ReadOnlyTagHelperAttributeList : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute>
type ReadOnlyTagHelperAttributeList = class
    inherit ReadOnlyCollection<TagHelperAttribute>
Public MustInherit Class ReadOnlyTagHelperAttributeList
Inherits ReadOnlyCollection(Of TagHelperAttribute)
Inheritance
ReadOnlyTagHelperAttributeList
Derived

Constructors

ReadOnlyTagHelperAttributeList()

Instantiates a new instance of ReadOnlyTagHelperAttributeList with an empty collection.

ReadOnlyTagHelperAttributeList(IList<TagHelperAttribute>)

Instantiates a new instance of ReadOnlyTagHelperAttributeList with the specified attributes.

Properties

Item[String]

Gets the first TagHelperAttribute with Name matching name.

Methods

ContainsName(String)

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

IndexOfName(String)

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

NameEquals(String, TagHelperAttribute)

Determines if the specified attribute has the same name as name.

TryGetAttribute(String, TagHelperAttribute)

Retrieves the first TagHelperAttribute with Name matching name.

TryGetAttributes(String, IReadOnlyList<TagHelperAttribute>)

Retrieves TagHelperAttributes in the collection with Name matching name.

Applies to