Class FileContentResult
- Namespace
- Phoesion.Glow.SDK.Firefly
- Assembly
- Phoesion.Glow.SDK.Firefly.Abstractions.dll
public class FileContentResult : BufferWithMetadata, IHasContentType, IHasHeaders
- Inheritance
-
object
FileContentResult
- Implements
-
- Inherited Members
-
Constructors
FileContentResult(byte[], string)
public FileContentResult(byte[] buffer, string fileName)
Parameters
buffer byte[]
fileName string
FileContentResult(byte[], string, string)
public FileContentResult(byte[] buffer, string contentType, string fileName)
Parameters
buffer byte[]
contentType string
fileName string
FileContentResult(string)
public FileContentResult(string filePath)
Parameters
filePath string
FileContentResult(string, string)
public FileContentResult(string filePath, string contentType)
Parameters
filePath string
contentType string
FileContentResult(string, string, string)
public FileContentResult(string filePath, string contentType, string fileName)
Parameters
filePath string
contentType string
fileName string
Properties
public Dictionary<string, StringValues> Headers { get; }
Property Value
- Dictionary<string, StringValues>
Methods
WithContentType(string)
public BufferWithMetadata WithContentType(string contentType)
Parameters
contentType string
Returns
- BufferWithMetadata
WithFileName(string)
public FileContentResult WithFileName(string fileName)
Parameters
fileName string
Returns
- FileContentResult
Operators
explicit operator FileContentResult(string)
public static explicit operator FileContentResult(string FilePath)
Parameters
FilePath string
Returns
- FileContentResult
explicit operator FileContentResult((byte[] Buffer, string ContentType, string FileName))
public static explicit operator FileContentResult((byte[] Buffer, string ContentType, string FileName) tuple)
Parameters
tuple (byte[] Buffer, string ContentType, string FileName)
Returns
- FileContentResult
explicit operator FileContentResult((string FilePath, string ContentType, string FileName))
public static explicit operator FileContentResult((string FilePath, string ContentType, string FileName) tuple)
Parameters
tuple (string FilePath, string ContentType, string FileName)
Returns
- FileContentResult
explicit operator FileContentResult((string FilePath, string ContentType))
public static explicit operator FileContentResult((string FilePath, string ContentType) tuple)
Parameters
tuple (string FilePath, string ContentType)
Returns
- FileContentResult
implicit operator FileContentResult((byte[] Buffer, string FileName))
public static implicit operator FileContentResult((byte[] Buffer, string FileName) tuple)
Parameters
tuple (byte[], string)
Returns
- FileContentResult