Click or drag to resize
AttachmentInfoProviderGetAttachments Method (String, String, Boolean, Int32, String)
Returns object query of all attachments filtered by where condition.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static ObjectQuery<AttachmentInfo> GetAttachments(
	string whereCondition,
	string orderBy = null,
	bool getBinary = true,
	int topN = 0,
	string columns = null
)

Parameters

whereCondition
Type: SystemString
Where condition statement
orderBy (Optional)
Type: SystemString
Order by statement
getBinary (Optional)
Type: SystemBoolean
If false, no binary data is returned for the attachments
topN (Optional)
Type: SystemInt32
Top N attachments
columns (Optional)
Type: SystemString
Selected columns

Return Value

Type: ObjectQueryAttachmentInfo
Remarks
The IncludeBinaryData property and the BinaryData method don't load binary data for attachments stored on the filesystem. To load binary data for attachments stored on the filesystem, use the AttachmentBinary property of every record.
See Also