Partilhar via


StaticFileResponseContext Construtores

Definição

Sobrecargas

StaticFileResponseContext()
Obsoleto.

Constrói o StaticFileResponseContext.

StaticFileResponseContext(HttpContext, IFileInfo)

Constrói o StaticFileResponseContext.

StaticFileResponseContext()

Origem:
StaticFileResponseContext.cs
Origem:
StaticFileResponseContext.cs

Cuidado

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

Aplica-se a

StaticFileResponseContext(HttpContext, IFileInfo)

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

Parâmetros

context
HttpContext

As informações de solicitação e de resposta.

file
IFileInfo

O arquivo a ser servido.

Aplica-se a