Udostępnij za pośrednictwem


StaticFileResponseContext Konstruktory

Definicja

Przeciążenia

StaticFileResponseContext()
Przestarzałe.

Konstruuje element StaticFileResponseContext.

StaticFileResponseContext(HttpContext, IFileInfo)

Konstruuje element StaticFileResponseContext.

StaticFileResponseContext()

Źródło:
StaticFileResponseContext.cs
Źródło:
StaticFileResponseContext.cs

Przestroga

Use the constructor that passes in the HttpContext and IFileInfo parameters: StaticFileResponseContext(HttpContext context, IFileInfo file)

Konstruuje element StaticFileResponseContext.

public:
 StaticFileResponseContext();
public StaticFileResponseContext ();
[System.Obsolete("Use the constructor that passes in the HttpContext and IFileInfo parameters: StaticFileResponseContext(HttpContext context, IFileInfo file)", false)]
public StaticFileResponseContext ();
Public Sub New ()
Atrybuty

Dotyczy

StaticFileResponseContext(HttpContext, IFileInfo)

Źródło:
StaticFileResponseContext.cs

Konstruuje element StaticFileResponseContext.

public:
 StaticFileResponseContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::Extensions::FileProviders::IFileInfo ^ file);
public StaticFileResponseContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.Extensions.FileProviders.IFileInfo file);
new Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.Extensions.FileProviders.IFileInfo -> Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext
Public Sub New (context As HttpContext, file As IFileInfo)

Parametry

context
HttpContext

Informacje o żądaniu i odpowiedzi.

file
IFileInfo

Plik, który ma zostać obsłużony.

Dotyczy