Compartir a través de


ReadOnlyTagHelperAttributeList.TryGetAttributes Método

Definición

TagHelperAttributeRecupera s de la colección con Name la coincidencia 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

Parámetros

name
String

de Name los TagHelperAttributeque se van a obtener.

attributes
IReadOnlyList<TagHelperAttribute>

Cuando este método devuelve , el valor de con TagHelperAttributeName coincidentename.

Devoluciones

true es si existe al menos uno TagHelperAttribute con el mismo Name en la colección; de lo contrario, falsees .

Comentarios

name se compara sin distinción entre mayúsculas y minúsculas.

Se aplica a