Поделиться через


StaticFileResponseContext Конструкторы

Определение

Перегрузки

StaticFileResponseContext()
Устаревшие..

Создает .StaticFileResponseContext

StaticFileResponseContext(HttpContext, IFileInfo)

Создает .StaticFileResponseContext

StaticFileResponseContext()

Исходный код:
StaticFileResponseContext.cs
Исходный код:
StaticFileResponseContext.cs

Внимание!

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

Создает .StaticFileResponseContext

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 ()
Атрибуты

Применяется к

StaticFileResponseContext(HttpContext, IFileInfo)

Исходный код:
StaticFileResponseContext.cs

Создает .StaticFileResponseContext

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)

Параметры

context
HttpContext

Сведения о запросе и отклике.

file
IFileInfo

Файл к обработке.

Применяется к