DirectoryBrowserExtensions.UseDirectoryBrowser Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseDirectoryBrowser(IApplicationBuilder) |
Aktifkan penjelajahan direktori pada jalur saat ini |
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) |
Aktifkan penjelajahan direktori dengan opsi yang diberikan |
UseDirectoryBrowser(IApplicationBuilder, String) |
Mengaktifkan penjelajahan direktori untuk jalur permintaan yang diberikan |
UseDirectoryBrowser(IApplicationBuilder)
Aktifkan penjelajahan direktori pada jalur saat ini
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
Parameter
Mengembalikan
Keterangan
File dilayani dari jalur yang ditentukan di WebRootPath atau WebRootFileProvider yang default ke subfolder 'wwwroot'.
Berlaku untuk
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)
Aktifkan penjelajahan direktori dengan opsi yang diberikan
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
Parameter
- options
- DirectoryBrowserOptions
Mengembalikan
Berlaku untuk
UseDirectoryBrowser(IApplicationBuilder, String)
Mengaktifkan penjelajahan direktori untuk jalur permintaan yang diberikan
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
Parameter
- requestPath
- String
Jalur permintaan relatif.
Mengembalikan
Keterangan
File dilayani dari jalur yang ditentukan di WebRootPath atau WebRootFileProvider yang default ke subfolder 'wwwroot'.