StaticFileResponseContext 构造函数

定义

重载

StaticFileResponseContext()
已过时.

构造 StaticFileResponseContext

StaticFileResponseContext(HttpContext, IFileInfo)

构造 StaticFileResponseContext

StaticFileResponseContext()

Source:
StaticFileResponseContext.cs
Source:
StaticFileResponseContext.cs

注意

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 ()
属性

适用于

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)

参数

context
HttpContext

请求和响应信息。

file
IFileInfo

要提供的文件。

适用于