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

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static AttachmentInfo GetAttachment(
	int documentId,
	string fileName,
	int versionHistoryId,
	TreeProvider tree,
	bool includeBinary = true
)

Parameters

documentId
Type: SystemInt32
Document ID
fileName
Type: SystemString
Attachment file name
versionHistoryId
Type: SystemInt32
Required version history ID
tree
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
includeBinary (Optional)
Type: SystemBoolean
Indicates whether binary column should be included.

Return Value

Type: AttachmentInfo
See Also