ReadOnlyTagHelperAttributeList.TryGetAttributes Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de