DirectoryBrowserExtensions.UseDirectoryBrowser 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseDirectoryBrowser(IApplicationBuilder) |
啟用目前路徑上的瀏覽目錄 |
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) |
使用給定的選項啟用目錄瀏覽 |
UseDirectoryBrowser(IApplicationBuilder, String) |
啟用指定要求路徑的瀏覽目錄 |
UseDirectoryBrowser(IApplicationBuilder)
啟用目前路徑上的瀏覽目錄
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder) As IApplicationBuilder
參數
傳回
備註
檔案會從 中指定的 WebRootPath 路徑提供,或 WebRootFileProvider 預設為 'wwwroot' 子資料夾。
適用於
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)
使用給定的選項啟用目錄瀏覽
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DirectoryBrowserOptions options);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DirectoryBrowserOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder, options As DirectoryBrowserOptions) As IApplicationBuilder
參數
- options
- DirectoryBrowserOptions
傳回
適用於
UseDirectoryBrowser(IApplicationBuilder, String)
啟用指定要求路徑的瀏覽目錄
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, System::String ^ requestPath);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder, requestPath As String) As IApplicationBuilder
參數
- requestPath
- String
相對要求路徑。
傳回
備註
檔案會從 中指定的 WebRootPath 路徑提供,或 WebRootFileProvider 預設為 'wwwroot' 子資料夾。