IViewLocationExpander Interface¶
Summary¶
Specifies the contracts for a view location expander that is used by [Microsoft.AspNet.Mvc.Razor.RazorViewEngine](Microsoft.AspNet.Mvc.Razor.RazorViewEngine.yml) instances to determine search paths for a view.
Methods¶
-
ExpandViewLocations
(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext, System.Collections.Generic.IEnumerable<System.String>)¶ Invoked by a [Microsoft.AspNet.Mvc.Razor.RazorViewEngine](Microsoft.AspNet.Mvc.Razor.RazorViewEngine.yml) to determine potential locations for a view.
Arguments: - context (Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext) – The [Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext](Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext.yml) for the current view location expansion operation.
- viewLocations (System.Collections.Generic.IEnumerable{System.String}) – The sequence of view locations to expand.
Return type: System.Collections.Generic.IEnumerable{System.String}
Returns: A list of expanded view locations.
IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
-
PopulateValues
(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext)¶ Invoked by a [Microsoft.AspNet.Mvc.Razor.RazorViewEngine](Microsoft.AspNet.Mvc.Razor.RazorViewEngine.yml) to determine the values that would be consumed by this instance of [Microsoft.AspNet.Mvc.Razor.IViewLocationExpander](Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.yml). The calculated values are used to determine if the view location has changed since the last time it was located.
Arguments: - context (Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext) – The [Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext](Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext.yml) for the current view location expansion operation.
void PopulateValues(ViewLocationExpanderContext context)
-