ReadOnlyTagHelperAttributeList.IndexOfName(String) Method

Definition

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

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

Parameters

name
String

The Name to locate in the collection.

Returns

The zero-based index of the first matching TagHelperAttribute within the collection, if found; otherwise, -1.

Applies to