Try our conversational search powered by Generative AI!

Interface ITemplatePathResolver

Interface to resolve template path for the requested render type

Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface ITemplatePathResolver
Examples

The following code example demonstrates how to create a template path resolver.

Methods

ResolvePath(Type, TemplateTypeCategories)

Resolves the path for the requested render type.

Declaration
string ResolvePath(Type type, TemplateTypeCategories templateTypeCategory)
Parameters
Type Name Description
System.Type type

The type.

TemplateTypeCategories templateTypeCategory

The type of template.

Returns
Type Description
System.String

returns path to the control

Events

ResolvingTemplatePath

Occurs when tries to resolve template path.

Declaration
event EventHandler<ResolvingTemplatePathEventArgs> ResolvingTemplatePath
Event Type
Type Description
System.EventHandler<ResolvingTemplatePathEventArgs>

Extension Methods