Partilhar via


ReadOnlyTagHelperAttributeList.TryGetAttributes Método

Definição

TagHelperAttributeRecupera s na coleção com Name correspondentename.

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

Parâmetros

name
String

O Name dos TagHelperAttributes para obter.

attributes
IReadOnlyList<TagHelperAttribute>

Quando esse método retorna, o TagHelperAttributes com Name correspondente name.

Retornos

true se pelo menos um TagHelperAttribute com o mesmo Name existir na coleção; caso contrário, false.

Comentários

name é comparado sem diferenciar maiúsculas de minúsculas.

Aplica-se a