共用方式為


IWebHostEnvironment.WebRootFileProvider 屬性

定義

取得或設定指向 WebRootPathIFileProvider。 這預設會參考 'wwwroot' 子資料夾中的檔案。

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

屬性值

適用於