DocumentHelper EnsureOwnAttachments Method Kentico 8.1 API Reference
Creates document attachments for the given document when the attachments are bound to several documents.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

node
Type: CMS.DocumentEngine TreeNode
New document node
originalNode
Type: CMS.DocumentEngine TreeNode
Original document node
tree
Type: CMS.DocumentEngine TreeProvider
TreeProvider to use
processVersionHistory
Type: OnlineSystem Boolean
Indicates whether version history of the document should be processed.
guidTable
Type: OnlineSystem.Collections Hashtable 
Table with attachments' GUID which have been ensured
ensureGroupedAndUnsorted (Optional)
Type: OnlineSystem Boolean
Indicates if grouped and unsorted attachments should be ensured.

Return Value

Type: OnlineBoolean
Returns true if the document should be updated (Field attachments have been ensured.)
Remarks

This method is intended to be used only after the copy operation to separate the documents.
See Also