Click or drag to resize
MediaFileInfoProviderGetMediaFiles Method (String, String, Int32, String)
Returns dataset of files matching given criteria from database.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
public static ObjectQuery<MediaFileInfo> GetMediaFiles(
	string where,
	string orderBy = null,
	int topN = -1,
	string columns = null
)

Parameters

where
Type: SystemString
WHERE condition
orderBy (Optional)
Type: SystemString
ORDER BY parameter
topN (Optional)
Type: SystemInt32
TOP N parameter
columns (Optional)
Type: SystemString
Selected columns

Return Value

Type: ObjectQueryMediaFileInfo
See Also