Click or drag to resize
DocumentHelperGetPrimaryAttachmentsForDocuments Method
Gets the primary attachments for the given document IDs. Used internally to display thumbnails in dialogs

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax
C#
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, IDataContainer
See Also