DocumentHelper.EnsureOwnAttachments Method |
Creates document attachments for the given document when the attachments are bound to several documents.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax public static bool EnsureOwnAttachments(
TreeNode node,
TreeNode originalNode,
TreeProvider tree,
bool processVersionHistory,
ref Hashtable guidTable,
bool ensureGroupedAndUnsorted = true
)
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: System.Boolean
Indicates whether version history of the document should be processed. - guidTable
- Type: System.Collections.Hashtable
Table with attachments' GUID which have been ensured - ensureGroupedAndUnsorted (Optional)
- Type: System.Boolean
Indicates if grouped and unsorted attachments should be ensured.
Return Value
Type:
BooleanReturns 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