StaticFileResponseContext Constructors

Definition

Overloads

StaticFileResponseContext()
Obsolete.

Constructs the StaticFileResponseContext.

StaticFileResponseContext(HttpContext, IFileInfo)

Constructs the StaticFileResponseContext.

StaticFileResponseContext()

Source:
StaticFileResponseContext.cs
Source:
StaticFileResponseContext.cs

Caution

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

Constructs the 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 ()
Attributes

Applies to

StaticFileResponseContext(HttpContext, IFileInfo)

Source:
StaticFileResponseContext.cs

Constructs the 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)

Parameters

context
HttpContext

The request and response information.

file
IFileInfo

The file to be served.

Applies to