TagHelperAttributeList Clase

Definición

Una colección de 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)
Herencia
Implementaciones

Constructores

TagHelperAttributeList()

Crea una instancia de TagHelperAttributeList con una colección vacía.

TagHelperAttributeList(IEnumerable<TagHelperAttribute>)

Crea una instancia de TagHelperAttributeList con el especificado attributes.

TagHelperAttributeList(List<TagHelperAttribute>)

Crea una instancia de TagHelperAttributeList con el especificado attributes.

Propiedades

Item[Int32]

Gets or sets the element at the specified index.

Item[String]

Obtiene el primero TagHelperAttribute con Name la coincidencia namede .

(Heredado de ReadOnlyTagHelperAttributeList)

Métodos

Add(String, Object)

Agrega un TagHelperAttribute objeto al final de la colección con el especificado name y value.

Add(TagHelperAttribute)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

ContainsName(String)

Determina si existe un TagHelperAttribute objeto con Name coincidencia name en la colección.

(Heredado de ReadOnlyTagHelperAttributeList)
IndexOfName(String)

Busca coincidencias TagHelperAttribute Name entre mayúsculas y minúsculas name y devuelve el índice de base cero de la primera aparición.

(Heredado de 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)

Quita todos los TagHelperAttributeelementos con Name la coincidencia namede .

RemoveAt(Int32)

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

SetAttribute(String, Object)

Reemplaza el primero TagHelperAttribute por la coincidencia name y quita las coincidencias adicionalesTagHelperAttributeName. Si no se encuentra una coincidencia TagHelperAttribute , agrega un TagHelperAttribute con name y value al final de la colección.

SetAttribute(TagHelperAttribute)

Reemplaza el primero TagHelperAttribute por los elementos Name coincidentes attributey quita los elementos coincidentes TagHelperAttributeadicionales.Name Si no se encuentra una coincidencia TagHelperAttribute , agrega el especificado attribute al final de la colección.

TryGetAttribute(String, TagHelperAttribute)

Recupera el primero TagHelperAttribute con Name la coincidencia namede .

(Heredado de ReadOnlyTagHelperAttributeList)
TryGetAttributes(String, IReadOnlyList<TagHelperAttribute>)

TagHelperAttributeRecupera s de la colección con Name la coincidencia name.

(Heredado de ReadOnlyTagHelperAttributeList)

Implementaciones de interfaz explícitas

ICollection<TagHelperAttribute>.IsReadOnly

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

Se aplica a