Click or drag to resize
DocumentHelperGetAttachment Method (Guid, 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: 11.0.0
Syntax
C#
public static DocumentAttachment GetAttachment(
	Guid attachmentGuid,
	int versionHistoryId,
	bool includeBinary = true
)

Parameters

attachmentGuid
Type: SystemGuid
Attachment GUID
versionHistoryId
Type: SystemInt32
Required version history ID
includeBinary (Optional)
Type: SystemBoolean
Indicates whether binary column should be included.

Return Value

Type: DocumentAttachment
See Also