Compartilhar via


ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Método

Definição

Determina se o especificado attribute tem o mesmo nome que 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

Parâmetros

name
String

O valor a ser comparado com attributes Name.

attribute
TagHelperAttribute

O atributo com o qual comparar.

Retornos

true se name não diferencia maiúsculas de minúsculas corresponder attributea s Name.

Aplica-se a