StaticFileResponseContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.