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.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax 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:
DocumentAttachmentSee Also