Aracılığıyla paylaş


StaticFileResponseContext Oluşturucular

Tanım

Aşırı Yüklemeler

StaticFileResponseContext()
Geçersiz.

öğesini StaticFileResponseContextoluşturur.

StaticFileResponseContext(HttpContext, IFileInfo)

öğesini StaticFileResponseContextoluşturur.

StaticFileResponseContext()

Kaynak:
StaticFileResponseContext.cs
Kaynak:
StaticFileResponseContext.cs

Dikkat

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

öğesini StaticFileResponseContextoluşturur.

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 ()
Öznitelikler

Şunlara uygulanır

StaticFileResponseContext(HttpContext, IFileInfo)

Kaynak:
StaticFileResponseContext.cs

öğesini StaticFileResponseContextoluşturur.

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)

Parametreler

context
HttpContext

İstek ve yanıt bilgileri.

file
IFileInfo

Sunulacak dosya.

Şunlara uygulanır