Compartir a través de


StaticFileResponseContext Constructores

Definición

Sobrecargas

StaticFileResponseContext()
Obsoletos.

Construye el StaticFileResponseContextobjeto .

StaticFileResponseContext(HttpContext, IFileInfo)

Construye el StaticFileResponseContextobjeto .

StaticFileResponseContext()

Source:
StaticFileResponseContext.cs
Source:
StaticFileResponseContext.cs

Precaución

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

Construye el StaticFileResponseContextobjeto .

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

Se aplica a

StaticFileResponseContext(HttpContext, IFileInfo)

Source:
StaticFileResponseContext.cs

Construye el StaticFileResponseContextobjeto .

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)

Parámetros

context
HttpContext

Información de la solicitud y la respuesta.

file
IFileInfo

Archivo que se va a enviar.

Se aplica a