TagHelperDescriptorProvider.GetDescriptors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all tag helpers that match the given 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)
Parameters
- tagName
- String
The name of the HTML tag to match. Providing a '*' tag name retrieves catch-all TagHelperDescriptors (descriptors that target every tag).
- attributes
- IEnumerable<KeyValuePair<String,String>>
Attributes the HTML element must contain to match.
- parentTagName
- String
The parent tag name of the given tagName tag.
Returns
TagHelperDescriptors that apply to the given tagName.
Will return an empty Enumerable if no TagHelperDescriptors are
found.