FileContentResult FileContentResult FileContentResult FileContentResult Class

Definition

Represents an ActionResult that when executed will write a binary file to the response.

public ref class FileContentResult : Microsoft::AspNetCore::Mvc::FileResult
public class FileContentResult : Microsoft.AspNetCore.Mvc.FileResult
type FileContentResult = class
    inherit FileResult
Public Class FileContentResult
Inherits FileResult
Inheritance

Constructors

FileContentResult(Byte[], MediaTypeHeaderValue) FileContentResult(Byte[], MediaTypeHeaderValue) FileContentResult(Byte[], MediaTypeHeaderValue) FileContentResult(Byte[], MediaTypeHeaderValue)

Creates a new FileContentResult instance with the provided fileContents and the provided contentType.

FileContentResult(Byte[], String) FileContentResult(Byte[], String) FileContentResult(Byte[], String) FileContentResult(Byte[], String)

Creates a new FileContentResult instance with the provided fileContents and the provided contentType.

Properties

ContentType ContentType ContentType ContentType

Gets the Content-Type header for the response.

(Inherited from FileResult)
EnableRangeProcessing EnableRangeProcessing EnableRangeProcessing EnableRangeProcessing

Gets or sets the value that enables range processing for the FileResult.

(Inherited from FileResult)
EntityTag EntityTag EntityTag EntityTag

Gets or sets the etag associated with the FileResult.

(Inherited from FileResult)
FileContents FileContents FileContents FileContents

Gets or sets the file contents.

FileDownloadName FileDownloadName FileDownloadName FileDownloadName

Gets the file name that will be used in the Content-Disposition header of the response.

(Inherited from FileResult)
LastModified LastModified LastModified LastModified

Gets or sets the last modified information associated with the FileResult.

(Inherited from FileResult)

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) 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) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)

Applies to