Share via


IViewLocationExpander.ExpandViewLocations Method

Definition

Invoked by a RazorViewEngine to determine potential locations for a view.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ ExpandViewLocations(Microsoft::AspNetCore::Mvc::Razor::ViewLocationExpanderContext ^ context, System::Collections::Generic::IEnumerable<System::String ^> ^ viewLocations);
public System.Collections.Generic.IEnumerable<string> ExpandViewLocations (Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable<string> viewLocations);
abstract member ExpandViewLocations : Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext * seq<string> -> seq<string>
Public Function ExpandViewLocations (context As ViewLocationExpanderContext, viewLocations As IEnumerable(Of String)) As IEnumerable(Of String)

Parameters

context
ViewLocationExpanderContext

The ViewLocationExpanderContext for the current view location expansion operation.

viewLocations
IEnumerable<String>

The sequence of view locations to expand.

Returns

A list of expanded view locations.

Applies to