Click or drag to resize
DocumentHelper.GetAttachment Method (Guid, String, Boolean, TreeNode)
Returns the latest version of the specified attachment. 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: 11.0.0
Syntax
C#
public static DocumentAttachment GetAttachment(
	Guid attachmentGuid,
	string siteName,
	bool includeBinary,
	out TreeNode node
)

Parameters

attachmentGuid
Type: System.Guid
Attachment GUID
siteName
Type: System.String
Site name
includeBinary
Type: System.Boolean
Indicates whether binary data should be included.
node
Type: CMS.DocumentEngine.TreeNode
Returning the latest version of the document node

Return Value

Type: DocumentAttachment
See Also