Share via


LanguageViewLocationExpander.ExpandViewLocations Method

Definition

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

public:
 virtual System::Collections::Generic::IEnumerable<System::String ^> ^ ExpandViewLocations(Microsoft::AspNetCore::Mvc::Razor::ViewLocationExpanderContext ^ context, System::Collections::Generic::IEnumerable<System::String ^> ^ viewLocations);
public virtual 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>
override this.ExpandViewLocations : Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext * seq<string> -> seq<string>
Public Overridable 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.

Implements

Applies to