Freigeben über


ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Methode

Definition

Bestimmt, ob der angegebene attribute denselben Namen wie namehat.

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

Parameter

name
String

Der Wert, der mit attributes Nameverglichen werden soll.

attribute
TagHelperAttribute

Das Attribut, mit dem verglichen werden soll.

Gibt zurück

true, wenn name die Groß-/Kleinschreibung nicht beachtet wird.attributeName

Gilt für: