Attachments : How to get attachment metadata only?
HeadAttachment can be used to download attachment metadata for a single attachment.
Attachment HeadAttachment(string key);
|key||string||key of the attachment you want to download metadata for|
|Attachment||Object that represents attachment.|
Attachment attachment = store .DatabaseCommands .HeadAttachment("albums/holidays/sea.jpg"); // null if does not exist
GetAttachmentHeadersStartingWith can be used to download attachment metadata for a multiple attachments.
IEnumerable<Attachment> GetAttachmentHeadersStartingWith( string idPrefix, int start, int pageSize);
|idPrefix||string||prefix for which attachments should be returned|
|start||int||number of attachments that should be skipped|
|pageSize||int||maximum number of attachments that will be returned|
|AttachmentInformation||Object that represents attachment metadata information.|
IEnumerable<Attachment> attachments = store .DatabaseCommands .GetAttachmentHeadersStartingWith("albums/holidays/", 0, 10);
Data property in
Attachment will return empty stream for the above methods.