DocumentHelperGetPrimaryAttachmentsForDocuments Method |
Gets the primary attachments for the given document IDs. Used internally to display thumbnails in dialogs
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax public static SafeDictionary<int, IDataContainer> GetPrimaryAttachmentsForDocuments(
IList<int> documentIds,
bool getHistories,
IList<int> versionHistoryIds
)
Parameters
- documentIds
- Type: System.Collections.GenericIListInt32
Document IDs - getHistories
- Type: SystemBoolean
If true, the process is allowed to retrieve unpublished attachments from version history - versionHistoryIds
- Type: System.Collections.GenericIListInt32
Version history IDs when getting version histories is allowed
Return Value
Type:
SafeDictionaryInt32,
IDataContainerSee Also