Click or drag to resize
DocumentHelperGetAttachment Method (Guid, TreeProvider, String, Boolean, TreeNode)
Returns the latest version of the specified attachment.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static AttachmentInfo GetAttachment(
	Guid attachmentGuid,
	TreeProvider tree,
	string siteName,
	bool includeBinary,
	out TreeNode node
)

Parameters

attachmentGuid
Type: SystemGuid
Attachment GUID
tree
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
siteName
Type: SystemString
Site name
includeBinary
Type: SystemBoolean
Indicates whether binary data should be included.
node
Type: CMS.DocumentEngineTreeNode
Returning the document node

Return Value

Type: AttachmentInfo
See Also