ReadOnlyTagHelperAttributeList.TryGetAttributes Metoda

Definice

Načte TagHelperAttributes v kolekci s odpovídajícími Name name.

public:
 bool TryGetAttributes(System::String ^ name, [Runtime::InteropServices::Out] System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^> ^ % attributes);
public bool TryGetAttributes (string name, out System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute> attributes);
member this.TryGetAttributes : string * IReadOnlyList -> bool
Public Function TryGetAttributes (name As String, ByRef attributes As IReadOnlyList(Of TagHelperAttribute)) As Boolean

Parametry

name
String

To Name je ten TagHelperAttribute, co se má dostat.

attributes
IReadOnlyList<TagHelperAttribute>

Když tato metoda vrátí, TagHelperAttributes s odpovídající .nameName

Návraty

Boolean

true , pokud v kolekci existuje alespoň jeden TagHelperAttribute se stejným Name , jinak nepravda.

Poznámky

name nerozlišuje malá a velká písmena.

Platí pro