Condividi tramite


StaticFileExtensions.UseStaticFiles Metodo

Definizione

Overload

UseStaticFiles(IApplicationBuilder)

Abilita la gestione dei file statici per il percorso della richiesta corrente

UseStaticFiles(IApplicationBuilder, StaticFileOptions)

Abilita la gestione dei file statici con le opzioni specificate

UseStaticFiles(IApplicationBuilder, String)

Abilita la gestione dei file statici per il percorso della richiesta specificato

UseStaticFiles(IApplicationBuilder)

Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs

Abilita la gestione dei file statici per il percorso della richiesta corrente

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseStaticFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseStaticFiles (app As IApplicationBuilder) As IApplicationBuilder

Parametri

Restituisce

Commenti

I file vengono serviti dal percorso specificato in WebRootPath o WebRootFileProvider che per impostazione predefinita è la sottocartella "wwwroot".

Si applica a

UseStaticFiles(IApplicationBuilder, StaticFileOptions)

Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs

Abilita la gestione dei file statici con le opzioni specificate

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseStaticFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::StaticFileOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.StaticFileOptions options);
static member UseStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.StaticFileOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseStaticFiles (app As IApplicationBuilder, options As StaticFileOptions) As IApplicationBuilder

Parametri

Restituisce

Si applica a

UseStaticFiles(IApplicationBuilder, String)

Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs
Origine:
StaticFileExtensions.cs

Abilita la gestione dei file statici per il percorso della richiesta specificato

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseStaticFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, System::String ^ requestPath);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath);
static member UseStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseStaticFiles (app As IApplicationBuilder, requestPath As String) As IApplicationBuilder

Parametri

requestPath
String

Percorso della richiesta relativo.

Restituisce

Commenti

I file vengono serviti dal percorso specificato in WebRootPath o WebRootFileProvider che per impostazione predefinita è la sottocartella "wwwroot".

Si applica a