ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Método

Definición

Determina si el especificado attribute tiene el mismo nombre 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

Valor que se va a comparar con attributes Name.

attribute
TagHelperAttribute

Atributo con el que se va a comparar.

Devoluciones

Boolean

true si name no distingue mayúsculas de minúsculas coincide con attributes Name.

Se aplica a