Table of Contents

Class AssetRelatedItem

Namespace
CMS.MediaLibrary
Assembly
CMS.MediaLibrary.dll

Represents asset persisted in database.

[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.", false)]
public sealed class AssetRelatedItem
Inheritance
object
AssetRelatedItem
Extension Methods

Remarks

Use extension method ForAssets(ObjectQuery<MediaFileInfo>, IEnumerable<AssetRelatedItem>) to retrieve MediaFileInfo objects by single database query.

Constructors

AssetRelatedItem()

public AssetRelatedItem()

Properties

Dimensions

Asset dimensions for asset representing an image.

public AssetDimensions Dimensions { get; set; }

Property Value

AssetDimensions

Identifier

Asset identifier.

public Guid Identifier { get; set; }

Property Value

Guid

Name

Asset name.

public string Name { get; set; }

Property Value

string

Size

Asset file size.

public long Size { get; set; }

Property Value

long