Click or drag to resize
DocumentHelperUpdateAttachment Method
Updates the document attachment

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static void UpdateAttachment(
	TreeNode node,
	DocumentAttachment attachment
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
attachment
Type: CMS.DocumentEngineDocumentAttachment
Attachment to update
Exceptions
ExceptionCondition
ArgumentNullExceptionnode or attachment is null.
InvalidOperationExceptionUpdating of attachment variants is not supported. Use AttachmentInfoProvider or AttachmentHistoryInfoProvider to handle attachment variants data.
See Also