DocumentHelperDeleteAttachment Method (TreeNode, String) |
Deletes attachment from the given document node, including versioning consideration.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax public static void DeleteAttachment(
TreeNode node,
string guidColumnName
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - guidColumnName
- Type: SystemString
Column containing the Attachment GUID
Exceptions Exception | Condition |
---|
InvalidOperationException | Deleting of attachment variants is not supported. Use AttachmentInfoProvider or AttachmentHistoryInfoProvider to handle attachment variants. |
See Also