Filestreamresult Mvc Download

FileStreamResult Class • • 2 minutes to read In this article Sends binary content to the response by using a instance. Inheritance Hierarchy System.Web.Mvc.FileStreamResult Namespace: Assembly: System.Web.Mvc (in System.Web.Mvc.dll) Syntax 'Declaration Public Class FileStreamResult _ Inherits FileResult public class FileStreamResult: FileResult public ref class FileStreamResult: public FileResult The FileStreamResult type exposes the following members. Constructors Name Description Initializes a new instance of the FileStreamResult class. Top Properties Name Description Gets the content type to use for the response. (Inherited from.) Gets or sets the content-disposition header so that a file-download dialog box is displayed in the browser with the specified file name. (Inherited from.) Gets the stream that will be sent to the response.

Top Methods Name Description Determines whether the specified is equal to the current. (Inherited from.) Enables processing of the result of an action method by a custom type that inherits from the class. (Inherited from.) Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from.) Serves as a hash function for a particular type.

I have an action to return a pdf file in my controller, if the return file is for downloading, the following code can be used to modify filename successfully.

(Inherited from.) Gets the of the current instance. (Inherited from.) Creates a shallow copy of the current. (Inherited from.) Returns a string that represents the current object. Shaiya underworld patch (Inherited from.) Writes the file to the response.

(Overrides.) Top Thread Safety Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. See Also Reference.

    Search