TagHelperDescriptorProvider.GetDescriptors Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient tous les tag helpers qui correspondent au donné tagName
.
public:
System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ GetDescriptors(System::String ^ tagName, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ attributes, System::String ^ parentTagName);
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> GetDescriptors (string tagName, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> attributes, string parentTagName);
member this.GetDescriptors : string * seq<System.Collections.Generic.KeyValuePair<string, string>> * string -> seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>
Public Function GetDescriptors (tagName As String, attributes As IEnumerable(Of KeyValuePair(Of String, String)), parentTagName As String) As IEnumerable(Of TagHelperDescriptor)
Paramètres
- tagName
- String
Nom de la balise HTML à correspondre. La fourniture d’un nom de balise « * » récupère des s fourre-tout TagHelperDescriptor(descripteurs qui ciblent chaque balise).
- attributes
- IEnumerable<KeyValuePair<String,String>>
Attributs que l’élément HTML doit contenir pour correspondre.
- parentTagName
- String
Nom de la balise parente de la balise donnée tagName
.
Retours
TagHelperDescriptorqui s’appliquent au donné tagName
.
Retourne un vide Enumerable si aucun s n’est TagHelperDescriptortrouvé.