Struct FileDownload
Represents MVC action result that downloads a local file
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Wave.MVC
Assembly: NFX.Wave.dll
Syntax
public struct FileDownload : IActionResult
Constructors
FileDownload(String, Boolean, Int32)
Declaration
public FileDownload(string fileName, bool isAttachment = false, int bufferSize = 131072)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | |
System.Boolean | isAttachment | |
System.Int32 | bufferSize |
Fields
BufferSize
Download buffer size. Leave unchanged in most cases
Declaration
public readonly int BufferSize
Field Value
Type | Description |
---|---|
System.Int32 |
IsAttachment
When true, asks user to save as attachment
Declaration
public readonly bool IsAttachment
Field Value
Type | Description |
---|---|
System.Boolean |
LocalFileName
Local file name
Declaration
public readonly string LocalFileName
Field Value
Type | Description |
---|---|
System.String |
Methods
Execute(Controller, WorkContext)
Declaration
public void Execute(Controller controller, WorkContext work)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work |