Click or drag to resize
DocumentHelperGetAttachment Method (Int32, String, Int32, Boolean)
Returns given 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: 12.0.0
Syntax
C#
public static DocumentAttachment GetAttachment(
	int documentId,
	string fileName,
	int versionHistoryId,
	bool includeBinary = true
)

Parameters

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

Return Value

Type: DocumentAttachment
See Also