共用方式為


RazorViewEngineOptions.FileProviders 屬性

定義

取得 用來 RazorViewEngine 尋找 Razor 檔案的 IFileProvider 實例序列。

public:
 property System::Collections::Generic::IList<Microsoft::Extensions::FileProviders::IFileProvider ^> ^ FileProviders { System::Collections::Generic::IList<Microsoft::Extensions::FileProviders::IFileProvider ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.Extensions.FileProviders.IFileProvider> FileProviders { get; }
member this.FileProviders : System.Collections.Generic.IList<Microsoft.Extensions.FileProviders.IFileProvider>
Public ReadOnly Property FileProviders As IList(Of IFileProvider)

屬性值

備註

在啟動時,這會初始化為包含以應用程式根目錄為根目錄的 實例 ContentRootFileProvider

適用於