ReadOnlyTagHelperAttributeList.NameEquals(String, TagHelperAttribute) Metoda

Definice

Určuje, zda zadaný attribute název má stejný název jako 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

Parametry

name
String

Hodnota, která se má porovnat s attribute.Name

attribute
TagHelperAttribute

Atribut, který se má porovnat.

Návraty

Boolean

true pokud name nerozlišují malá a velká písmena odpovídá attributes Name.

Platí pro