Click or drag to resize
AttachmentInfoProvider.GetAttachments Method (Int32, Boolean)
Returns object query of attachments with specified document id.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public 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>
Remarks
The 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