ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) 方法

定义

确定指定的 attribute 是否具有与 相同的名称 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

参数

name
String

要与 attributes Name进行比较的值。

attribute
TagHelperAttribute

要与之进行比较的属性。

返回

true如果name不区分大小写匹配 ,Name则为 attribute

适用于