Class FileActionResult
Represents an IActionResult with a file as response.
Inheritance
System.Object
FileActionResult
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel.Actions
Assembly: TimeCockpit.Data.dll
Syntax
public class FileActionResult : IActionResult
Constructors
FileActionResult()
Declaration
public FileActionResult()
Properties
ContentType
Gets or sets the content type of the file.
Declaration
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileContents
Gets or sets the content of the file.
Declaration
public byte[] FileContents { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
FileDownloadName
Gets or sets the name of the file.
Declaration
public string FileDownloadName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Inline
Gets or sets a value indicating whether the file should be displayed inline or downloaded.
Declaration
public bool Inline { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |