DefaultFilesExtensions.UseDefaultFiles 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
UseDefaultFiles(IApplicationBuilder) |
Mengaktifkan pemetaan file default pada jalur saat ini |
UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) |
Mengaktifkan pemetaan file default dengan opsi yang diberikan |
UseDefaultFiles(IApplicationBuilder, String) |
Mengaktifkan pemetaan file default untuk jalur permintaan yang diberikan |
UseDefaultFiles(IApplicationBuilder)
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
Mengaktifkan pemetaan file default pada jalur saat ini
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDefaultFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder) As IApplicationBuilder
Parameter
Mengembalikan
Keterangan
File disajikan dari jalur yang ditentukan di WebRootPath atau WebRootFileProvider default ke subfolder 'wwwroot'.
Berlaku untuk
UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions)
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
Mengaktifkan pemetaan file default dengan opsi yang diberikan
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDefaultFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::DefaultFilesOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DefaultFilesOptions options);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DefaultFilesOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder, options As DefaultFilesOptions) As IApplicationBuilder
Parameter
- options
- DefaultFilesOptions
Mengembalikan
Berlaku untuk
UseDefaultFiles(IApplicationBuilder, String)
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
- Sumber:
- DefaultFilesExtensions.cs
Mengaktifkan pemetaan file default untuk jalur permintaan yang diberikan
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDefaultFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, System::String ^ requestPath);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder, requestPath As String) As IApplicationBuilder
Parameter
- requestPath
- String
Jalur permintaan relatif.
Mengembalikan
Keterangan
File disajikan dari jalur yang ditentukan di WebRootPath atau WebRootFileProvider default ke subfolder 'wwwroot'.