Freigeben über


StaticFileResponseContext Konstruktoren

Definition

Überlädt

StaticFileResponseContext()
Veraltet.

Erstellt die StaticFileResponseContext.

StaticFileResponseContext(HttpContext, IFileInfo)

Erstellt die StaticFileResponseContext.

StaticFileResponseContext()

Quelle:
StaticFileResponseContext.cs
Quelle:
StaticFileResponseContext.cs

Achtung

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

Gilt für:

StaticFileResponseContext(HttpContext, IFileInfo)

Quelle:
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)

Parameter

context
HttpContext

Die Anforderungs- und Antwortinformationen.

file
IFileInfo

Die Datei, die bereitgestellt werden soll.

Gilt für: