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

适用于