ReadOnlyTagHelperAttributeList.IndexOfName(String) 方法

定义

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

public:
 int IndexOfName(System::String ^ name);
public int IndexOfName (string name);
member this.IndexOfName : string -> int
Public Function IndexOfName (name As String) As Integer

参数

name
String

要在集合中查找的 Name

返回

如果找到集合中第一个匹配 TagHelperAttribute 项,则为从零开始的索引;否则为 -1。

适用于