Sdílet prostřednictvím


ReadOnlyTagHelperAttributeList.TryGetAttributes Metoda

Definice

Načte s v kolekci s odpovídajícími Namenameobjekty TagHelperAttribute.

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

Z Name toho, TagHelperAttributeco se má dostat.

attributes
IReadOnlyList<TagHelperAttribute>

Když se tato metoda vrátí, s TagHelperAttributes odpovídající name.Name

Návraty

true pokud v kolekci existuje alespoň jeden TagHelperAttribute se stejným Name objektem; v opačném případě false.

Poznámky

name je porovnáván bez rozlišování velkých a malých písmen.

Platí pro