AttachmentInfoProvider.GetAttachments Method (String, String, Boolean, Int32, String) |
Note: This API is now obsolete.
Returns object query of all attachments filtered by where condition.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax[ObsoleteAttribute("Use GetAttachments() instead.")]
public static ObjectQuery<AttachmentInfo> GetAttachments(
string whereCondition,
string orderBy = null,
bool getBinary = true,
int topN = 0,
string columns = null
)
Parameters
- whereCondition
- Type: System.String
Where condition statement - orderBy (Optional)
- Type: System.String
Order by statement - getBinary (Optional)
- Type: System.Boolean
If false, no binary data is returned for the attachments - topN (Optional)
- Type: System.Int32
Top N attachments - columns (Optional)
- Type: System.String
Selected columns
Return Value
Type:
ObjectQuery<AttachmentInfo>
RemarksThe 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