ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的 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
參數
- attribute
- TagHelperAttribute
要與 比較的屬性。
傳回
true如果 name 不區分大小寫符合 s Name 則為 attribute 。