共用方式為


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

要與 attribute s Name 比較的值。

attribute
TagHelperAttribute

要與 比較的屬性。

傳回

true如果 name 不區分大小寫符合 s Name 則為 attribute

適用於