DocumentHelperEnsureOwnAttachments 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: 9.0.0
Syntax public static bool EnsureOwnAttachments(
TreeNode node,
TreeNode originalNode,
TreeProvider tree,
bool processVersionHistory,
ref Hashtable guidTable,
bool ensureGroupedAndUnsorted = true
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
New document node - originalNode
- Type: CMS.DocumentEngineTreeNode
Original document node - tree
- Type: CMS.DocumentEngineTreeProvider
TreeProvider to use - processVersionHistory
- Type: SystemBoolean
Indicates whether version history of the document should be processed. - guidTable
- Type: System.CollectionsHashtable
Table with attachments' GUID which have been ensured - ensureGroupedAndUnsorted (Optional)
- Type: SystemBoolean
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