Bagikan melalui


DirectoryBrowserExtensions.UseDirectoryBrowser Metode

Definisi

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)

Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs

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)

Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs

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

Mengembalikan

Berlaku untuk

UseDirectoryBrowser(IApplicationBuilder, String)

Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs
Sumber:
DirectoryBrowserExtensions.cs

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'.

Berlaku untuk