AttachmentInfoProvider.GetAttachments Method (Int32, Boolean) |
Returns object query of attachments with specified document id.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntaxpublic static ObjectQuery<AttachmentInfo> GetAttachments(
int documentId,
bool getBinary
)
Parameters
- documentId
- Type: System.Int32
Document id - getBinary
- Type: System.Boolean
If false, no binary data is returned for the attachments
Return Value
Type:
ObjectQuery<AttachmentInfo>
RemarksThe IncludeBinaryData property and the BinaryData method don't load binary data
for attachments stored on the filesystem. To load binary data for attachments stored on the
filesystem, use the AttachmentBinary property of every record.
See Also