ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- attribute
- TagHelperAttribute
The attribute to compare against.
Returns
true
if name
case-insensitively matches attribute
s
Name.