VirtualFileResult Class
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.
A FileResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.
public ref class VirtualFileResult : Microsoft::AspNetCore::Mvc::FileResult
public class VirtualFileResult : Microsoft.AspNetCore.Mvc.FileResult
type VirtualFileResult = class
inherit FileResult
Public Class VirtualFileResult
Inherits FileResult
- Inheritance
Constructors
VirtualFileResult(String, MediaTypeHeaderValue) |
Creates a new VirtualFileResult instance with
the provided |
VirtualFileResult(String, String) |
Creates a new VirtualFileResult instance with the provided |
Properties
ContentType |
Gets the Content-Type header for the response. (Inherited from FileResult) |
EnableRangeProcessing |
Gets or sets the value that enables range processing for the FileResult. (Inherited from FileResult) |
EntityTag |
Gets or sets the etag associated with the FileResult. (Inherited from FileResult) |
FileDownloadName |
Gets the file name that will be used in the Content-Disposition header of the response. (Inherited from FileResult) |
FileName |
Gets or sets the path to the file that will be sent back as the response. |
FileProvider |
Gets or sets the IFileProvider used to resolve paths. |
LastModified |
Gets or sets the last modified information associated with the FileResult. (Inherited from FileResult) |
Methods
ExecuteResult(ActionContext) |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from ActionResult) |
ExecuteResultAsync(ActionContext) |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task. |