TagHelperAttributeList Třída

Definice

Kolekce s TagHelperAttribute.

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)
Dědičnost
Implementuje

Konstruktory

TagHelperAttributeList()

Vytvoří instanci nové instance TagHelperAttributeList s prázdnou kolekcí.

TagHelperAttributeList(IEnumerable<TagHelperAttribute>)

Vytvoří instanci nové instance TagHelperAttributeList se zadaným attributes.

TagHelperAttributeList(List<TagHelperAttribute>)

Vytvoří instanci nové instance TagHelperAttributeList se zadaným attributes.

Vlastnosti

Item[Int32]

Gets or sets the element at the specified index.

Item[String]

Získá první TagHelperAttribute s párování nameName .

(Zděděno od ReadOnlyTagHelperAttributeList)

Metody

Add(String, Object)

TagHelperAttribute Přidá na konec kolekce se zadaným name a value.

Add(TagHelperAttribute)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

ContainsName(String)

Určuje, zda TagHelperAttribute v kolekci existuje odpovídající name hodnotaName.

(Zděděno od ReadOnlyTagHelperAttributeList)
IndexOfName(String)

TagHelperAttribute Vyhledá, kdo nerozlišuje Name name malá a malá písmena, a vrátí index založený na nule prvního výskytu.

(Zděděno od 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)

Odebere všechny TagHelperAttributes odpovídajícími nameName .

RemoveAt(Int32)

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

SetAttribute(String, Object)

Nahradí první TagHelperAttribute shodou name Name a odebere všechny další shodyTagHelperAttribute. Pokud se nenajde shoda TagHelperAttribute , přidá se TagHelperAttribute name s a value na konec kolekce.

SetAttribute(TagHelperAttribute)

Nahradí první TagHelperAttribute shodným attributeName textem Name a odebere všechny další shodyTagHelperAttribute. Pokud se nenajde shoda TagHelperAttribute , přidá zadaný attribute do konce kolekce.

TryGetAttribute(String, TagHelperAttribute)

Načte první TagHelperAttribute s odpovídajícími Name name.

(Zděděno od ReadOnlyTagHelperAttributeList)
TryGetAttributes(String, IReadOnlyList<TagHelperAttribute>)

Načte TagHelperAttributes v kolekci s odpovídajícími Name name.

(Zděděno od ReadOnlyTagHelperAttributeList)

Explicitní implementace rozhraní

ICollection<TagHelperAttribute>.IsReadOnly

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

Platí pro