TagHelperDescriptorProvider.GetDescriptors Method

Definition

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

IEnumerable<TagHelperDescriptor>

TagHelperDescriptors that apply to the given tagName. Will return an empty Enumerable if no TagHelperDescriptors are found.

Applies to