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

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax
C#
public static ObjectQuery<AttachmentInfo> GetAttachments(
	int documentId,
	bool getBinary
)

Parameters

documentId
Type: SystemInt32
Document id
getBinary
Type: SystemBoolean
If false, no binary data is returned for the attachments

Return Value

Type: ObjectQueryAttachmentInfo
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