共用方式為


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' 子資料夾。

適用於