次の方法で共有


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

返されるファイル。

適用対象