Table of Contents

Constructor WatchedAttachmentItem

Namespace
PowerSync.Common.Attachments
Assembly
PowerSync.Common.dll

WatchedAttachmentItem(string, string?, string?, string?)

Initializes a new WatchedAttachmentItem.

public WatchedAttachmentItem(string id, string? filename = null, string? fileExtension = null, string? metaData = null)

Parameters

id string

Attachment record ID.

filename string

Filename to store the attachment with. Mutually exclusive with fileExtension.

fileExtension string

File extension used to derive an internal filename when filename is not provided.

metaData string

Optional metadata.

Exceptions

ArgumentException

Thrown when neither or both of filename and fileExtension are provided.