Skip to main content
Version: Dev (main)

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

NameTypeDescription
pathstring
databyte[]
mimeTypestring

Properties​

MemberDescription
PathRelative, '/'-separated path inside the bundle.
MimeTypeNull: taken from the path's extension. Otherwise it must be the type that extension is served as.
DataThe 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[]