Partager via


StaticFileResponseContext Constructeurs

Définition

Surcharges

StaticFileResponseContext()
Obsolète.

Construit le StaticFileResponseContext.

StaticFileResponseContext(HttpContext, IFileInfo)

Construit le StaticFileResponseContext.

StaticFileResponseContext()

Source:
StaticFileResponseContext.cs
Source:
StaticFileResponseContext.cs

Attention

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

S’applique à

StaticFileResponseContext(HttpContext, IFileInfo)

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

Paramètres

context
HttpContext

Les informations de demande et de réponse.

file
IFileInfo

Le fichier à servir.

S’applique à