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-.
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: - option (Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpanderOption) – The [Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpanderOption](Microsoft.AspNet.Mvc.Razor.LanguageViewLocationExpanderOption.yml).
public LanguageViewLocationExpander(LanguageViewLocationExpanderOption option)
-
Methods¶
-
ExpandViewLocations
(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext, System.Collections.Generic.IEnumerable<System.String>)¶ Arguments: - context (Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext) –
- viewLocations (System.Collections.Generic.IEnumerable{System.String}) –
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)
-