SharedOptionsBase.FileProvider 属性

定义

用于查找资源的文件系统

public:
 property Microsoft::Extensions::FileProviders::IFileProvider ^ FileProvider { Microsoft::Extensions::FileProviders::IFileProvider ^ get(); void set(Microsoft::Extensions::FileProviders::IFileProvider ^ value); };
public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get; set; }
public Microsoft.Extensions.FileProviders.IFileProvider? FileProvider { get; set; }
member this.FileProvider : Microsoft.Extensions.FileProviders.IFileProvider with get, set
Public Property FileProvider As IFileProvider

属性值

注解

文件从 中指定的 WebRootPath 路径提供, WebRootFileProvider 默认为“wwwroot”子文件夹。

适用于