共用方式為


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>

要展開的檢視位置順序。

傳回

展開的檢視位置清單。

適用於