共用方式為


LanguageViewLocationExpander.ExpandViewLocations 方法

定義

由 叫 RazorViewEngine 用 以判斷檢視的潛在位置。

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)

參數

context
ViewLocationExpanderContext

ViewLocationExpanderContext目前檢視位置擴充作業的 。

viewLocations
IEnumerable<String>

要展開的檢視位置順序。

傳回

展開的檢視位置清單。

實作

適用於