PanelContentFile class
One file handed to PanelContentControl.PublishFiles.
Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll
public sealed class PanelContentFile
Constructors
PanelContentFile(string, byte[], string?)
public PanelContentFile(string path, byte[] data, string? mimeType = null)
Parameters
| Name | Type | Description |
|---|---|---|
path | string | |
data | byte[] | |
mimeType | string |
Properties
| Member | Description |
|---|---|
| Path | Relative, '/'-separated path inside the bundle. |
| MimeType | Null: taken from the path's extension. Otherwise it must be the type that extension is served as. |
| Data | The file's bytes, copied when published. |
Path
Relative, '/'-separated path inside the bundle.
public string Path { get; }
Value: string
MimeType
Null: taken from the path's extension. Otherwise it must be the type that extension is served as.
public string? MimeType { get; }
Value: string
Data
The file's bytes, copied when published.
public byte[] Data { get; }
Value: byte[]