TagHelperDescriptorProvider.GetDescriptors Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Získá všechny pomocníky značek, které odpovídají danému 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)
Parametry
- tagName
- String
Název značky HTML, která se má shodovat. Zadání názvu značky "*" načte catch-All TagHelperDescriptor s (popisovače, které cílí na všechny značky).
- attributes
- IEnumerable<KeyValuePair<String,String>>
Atributy, které musí prvek HTML obsahovat, aby odpovídaly.
- parentTagName
- String
Název nadřazené značky dané tagName značky.
Návraty
TagHelperDescriptors, které se vztahují k danému tagName .
Vrátí prázdnou hodnotu Enumerable TagHelperDescriptor , pokud se nenajde žádná.