Click or drag to resize
DocumentHelperGetAttachment Method (Int32, String, Int32, Boolean)

Note: This API is now obsolete.

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: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.DocumentEngine.DocumentHelper.GetAttachment(System.String, System.Int32, System.Boolean)' instead.")]
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