Click or drag to resize
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.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
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: DocumentAttachment
See Also