ReadOnlyTagHelperAttributeList.TryGetAttributes Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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
true , pokud v kolekci existuje alespoň jeden TagHelperAttribute se stejným Name , jinak nepravda.
Poznámky
name nerozlišuje malá a velká písmena.