Click or drag to resize
VersionManagerGetLatestAttachmentVersion Method
Returns latest attachment version found in the AttachmentHistoryTable. 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#
public AttachmentHistoryInfo GetLatestAttachmentVersion(
	Guid attachmentGuid,
	string siteName,
	bool getBinary = true
)

Parameters

attachmentGuid
Type: SystemGuid
Attachment GUID
siteName
Type: SystemString
Attachment site name
getBinary (Optional)
Type: SystemBoolean
Indicates if binary data should be included

Return Value

Type: AttachmentHistoryInfo
See Also