DocumentHelperGetAttachment 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.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax public static DocumentAttachment GetAttachment(
Guid attachmentGuid,
string siteName,
bool includeBinary,
out TreeNode node
)
Parameters
- attachmentGuid
- Type: SystemGuid
Attachment GUID - siteName
- Type: SystemString
Site name - includeBinary
- Type: SystemBoolean
Indicates whether binary data should be included. - node
- Type: CMS.DocumentEngineTreeNode
Returning the latest version of the document node
Return Value
Type:
DocumentAttachmentSee Also