Click or drag to resize
DocumentHelperGetAttachment Method (TreeNode, String, TreeProvider, Boolean)
Returns attachment for the given node specified by file name.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static AttachmentInfo GetAttachment(
	TreeNode node,
	string fileName,
	TreeProvider tree,
	bool includeBinary = true
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
fileName
Type: SystemString
Attachment file name
tree
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
includeBinary (Optional)
Type: SystemBoolean
Indicates whether binary data should be included.

Return Value

Type: AttachmentInfo
See Also