ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Method

Definition

Determines if the specified attribute has the same name as name.

protected:
 static bool NameEquals(System::String ^ name, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^ attribute);
protected static bool NameEquals (string name, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute);
static member NameEquals : string * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute -> bool
Protected Shared Function NameEquals (name As String, attribute As TagHelperAttribute) As Boolean

Parameters

name
String

The value to compare against attributes Name.

attribute
TagHelperAttribute

The attribute to compare against.

Returns

true if name case-insensitively matches attributes Name.

Applies to