IViewLocationExpander.ExpandViewLocations 方法

定义

RazorViewEngine 调用以确定视图的潜在位置。

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)

参数

context
ViewLocationExpanderContext

ViewLocationExpanderContext当前视图位置扩展操作的 。

viewLocations
IEnumerable<String>

要展开的视图位置序列。

返回

展开的视图位置的列表。

适用于