ReadOnlyTagHelperAttributeList 类

定义

的只读集合 TagHelperAttribute

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)
继承
ReadOnlyTagHelperAttributeList
派生

构造函数

ReadOnlyTagHelperAttributeList()

使用空集合实例化 的新 ReadOnlyTagHelperAttributeList 实例。

ReadOnlyTagHelperAttributeList(IList<TagHelperAttribute>)

使用指定的 attributes实例化 的新ReadOnlyTagHelperAttributeList实例。

属性

Item[String]

获取第一个TagHelperAttribute具有匹配 nameName

方法

ContainsName(String)

确定集合中是否存在 TagHelperAttribute 具有 Name 匹配 name 项的 。

IndexOfName(String)

TagHelperAttribute搜索不区分大小写的匹配nameName,并返回第一个匹配项的从零开始的索引。

NameEquals(String, TagHelperAttribute)

确定指定的 attribute 是否具有与 相同的名称 name

TryGetAttribute(String, TagHelperAttribute)

使用匹配 name检索第一个 。TagHelperAttributeName

TryGetAttributes(String, IReadOnlyList<TagHelperAttribute>)

使用匹配 nameTagHelperAttribute检索集合Name中的 。

适用于