TagHelperTypeResolver Class

Class that locates valid Microsoft.AspNetCore.Razor.TagHelpers.ITagHelpers within an assembly.

Namespace
Microsoft.AspNetCore.Razor.Runtime.TagHelpers
Assemblies
  • Microsoft.AspNetCore.Razor.Runtime

Syntax

public class TagHelperTypeResolver : ITagHelperTypeResolver
class Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperTypeResolver

Methods

GetExportedTypes(System.Reflection.AssemblyName)

Returns all exported types from the given <em>assemblyName</em>

Arguments:assemblyName (System.Reflection.AssemblyName) – The System.Reflection.AssemblyName to get System.Reflection.TypeInfos from.
Return type:System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo>
Returns:An System.Collections.Generic.IEnumerable`1 of types exported from the given <em>assemblyName</em>.
protected virtual IEnumerable<TypeInfo> GetExportedTypes(AssemblyName assemblyName)
IsTagHelper(System.Reflection.TypeInfo)

Indicates if a System.Reflection.TypeInfo should be treated as a tag helper.

Arguments:typeInfo (System.Reflection.TypeInfo) – The System.Reflection.TypeInfo to inspect.
Return type:System.Boolean
Returns:<code>true</code> if <em>typeInfo</em> should be treated as a tag helper; <code>false</code> otherwise
protected virtual bool IsTagHelper(TypeInfo typeInfo)
Resolve(System.String, Microsoft.AspNetCore.Razor.SourceLocation, Microsoft.AspNetCore.Razor.ErrorSink)
Return type:System.Collections.Generic.IEnumerable<System.Type>
public IEnumerable<Type> Resolve(string name, SourceLocation documentLocation, ErrorSink errorSink)