Table of Contents

Class MediaFileInfoObjectQueryExtensions

Namespace
CMS.MediaLibrary
Assembly
CMS.MediaLibrary.dll

Extension methods for ObjectQuery<TObject> class.

public static class MediaFileInfoObjectQueryExtensions
Inheritance
object
MediaFileInfoObjectQueryExtensions

Methods

ForAssets(ObjectQuery<MediaFileInfo>, IEnumerable<AssetRelatedItem>)

Retrieves media files for given collection of assets.

public static ObjectQuery<MediaFileInfo> ForAssets(this ObjectQuery<MediaFileInfo> query, IEnumerable<AssetRelatedItem> assets)

Parameters

query ObjectQuery<MediaFileInfo>

Media file object query which is being parametrized.

assets IEnumerable<AssetRelatedItem>

Collection of assets.

Returns

ObjectQuery<MediaFileInfo>

Original media file object query parametrized to load just media files for assets. When no asset is provided, query excludes all data from result.