LanguageViewLocationExpander Class

Summary

A [Microsoft.AspNet.Mvc.Razor.IViewLocationExpander](Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.yml) that adds the language as an extension prefix to view names. Language that is getting added as extension prefix comes from @!:Microsoft.AspNet.Http.HttpContext-.

Syntax

public class LanguageViewLocationExpander : IViewLocationExpander

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpander

Constructors

Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpander.LanguageViewLocationExpander()

Instantiates a new [Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpander](Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpander.yml) instance.

public LanguageViewLocationExpander()
LanguageViewLocationExpander(Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpanderOption)

Instantiates a new [Microsoft.AspNet.Mvc.Razor.DefaultTagHelperActivator](Microsoft.AspNet.Mvc.Razor.DefaultTagHelperActivator.yml) instance.

Arguments:
public LanguageViewLocationExpander(LanguageViewLocationExpanderOption option)

Methods

ExpandViewLocations(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext, System.Collections.Generic.IEnumerable<System.String>)
Arguments:
Return type:

System.Collections.Generic.IEnumerable{System.String}

public virtual IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
PopulateValues(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext)
Arguments:
public void PopulateValues(ViewLocationExpanderContext context)