Udostępnij za pośrednictwem


ReadOnlyTagHelperAttributeList.TryGetAttributes Metoda

Definicja

TagHelperAttributePobiera pliki w kolekcji z pasującym elementem Namename.

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

S NameTagHelperAttribute, aby uzyskać.

attributes
IReadOnlyList<TagHelperAttribute>

Gdy ta metoda zostanie zwrócona, s TagHelperAttributez pasującym nameelementem Name .

Zwraca

true jeśli co najmniej jeden z tymi TagHelperAttribute samymi Name istnieje w kolekcji; w przeciwnym razie false.

Uwagi

name jest porównywana wielkość liter bez uwzględniania wielkości liter.

Dotyczy