StaticFileResponseContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StaticFileResponseContext() |
已过时.
|
StaticFileResponseContext(HttpContext, IFileInfo) |
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
要提供的文件。