Sdílet prostřednictvím


StaticFileResponseContext Konstruktory

Definice

Přetížení

StaticFileResponseContext()
Zastaralé.

Vytvoří .StaticFileResponseContext

StaticFileResponseContext(HttpContext, IFileInfo)

Vytvoří .StaticFileResponseContext

StaticFileResponseContext()

Zdroj:
StaticFileResponseContext.cs
Zdroj:
StaticFileResponseContext.cs

Upozornění

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

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 ()
Atributy

Platí pro

StaticFileResponseContext(HttpContext, IFileInfo)

Zdroj:
StaticFileResponseContext.cs
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

Informace o žádostech a odpovědích

file
IFileInfo

Soubor, který se má obsluhovat.

Platí pro