DocumentHelperGetAttachment Method (TreeNode, String, Boolean) |
Returns attachment for the given node specified by file name.
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: 13.0.131
Syntax public static DocumentAttachment GetAttachment(
TreeNode node,
string fileName,
bool includeBinary = true
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - fileName
- Type: SystemString
Attachment file name - includeBinary (Optional)
- Type: SystemBoolean
Indicates whether binary data should be included.
Return Value
Type:
DocumentAttachmentSee Also