Click or drag to resize
DocumentHelperGetAttachments Method (TreeNode, Boolean)
Gets attachments (AttachmentInfo) or attachments versions (AttachmentHistoryInfo) for given document. Result contains objects of type AttachmentHistoryInfo if given document is under workflow. Otherwise result contains AttachmentInfo. Returns only main attachments, not attachment variants.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static IObjectQuery GetAttachments(
	TreeNode node,
	bool getBinary
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document which contains requested attachments.
getBinary
Type: SystemBoolean
Indicates if binary data should be included.

Return Value

Type: IObjectQuery
See Also