Struct Picture
Represents MVC action result that returns/downloads an image
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: Azos.Wave.Mvc
Assembly: Azos.Wave.dll
Syntax
public struct Picture : IActionResult, IDisposable
Constructors
Picture(Image, ImageFormat, String)
Declaration
public Picture(Image image, ImageFormat format, string attachmentFileName = null)
Parameters
Type | Name | Description |
---|---|---|
Image | image | |
ImageFormat | format | |
System.String | attachmentFileName |
Fields
m_AttachmentFileName
Declaration
public string m_AttachmentFileName
Field Value
Type | Description |
---|---|
System.String |
Properties
AttachmentFileName
When non-null asks user to download picture as a named attached file
Declaration
public string AttachmentFileName { get; }
Property Value
Type | Description |
---|---|
System.String |
Format
Download buffer size. Leave unchanged in most cases
Declaration
public ImageFormat Format { get; }
Property Value
Type | Description |
---|---|
ImageFormat |
Image
Picture image
Declaration
public Image Image { get; }
Property Value
Type | Description |
---|---|
Image |
Methods
Dispose()
Declaration
public void Dispose()
Execute(Controller, WorkContext)
Declaration
public void Execute(Controller controller, WorkContext work)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work |
Implements
System.IDisposable