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
idstringAttachment record ID.
filenamestringFilename to store the attachment with. Mutually exclusive with
fileExtension.fileExtensionstringFile extension used to derive an internal filename when
filenameis not provided.metaDatastringOptional metadata.
Exceptions
- ArgumentException
Thrown when neither or both of
filenameandfileExtensionare provided.