DocumentHelperGetAttachment Method (TreeNode, Guid, Boolean) |
Returns specified attachment for the given node.
Returns only an attachment which is not a variant. For an attachment variant returns null.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax public static DocumentAttachment GetAttachment(
TreeNode node,
Guid attachmentGuid,
bool includeBinary = true
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - attachmentGuid
- Type: SystemGuid
Attachment GUID - includeBinary (Optional)
- Type: SystemBoolean
Indicates whether binary data should be included.
Return Value
Type:
DocumentAttachmentSee Also