共用方式為


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)

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
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

要提供的檔案。

適用於