ReadOnlyTagHelperAttributeList.TryGetAttributes Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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 si al menos uno TagHelperAttribute con el mismo Name existe en la colección; de lo contrario, false.
Comentarios
name se compara sin distinción entre mayúsculas y minúsculas.