Class CommerceMedia

Inheritance
System.Object
CommerceMedia
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.SpecializedProperties
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class CommerceMedia : ICloneable

Constructors

CommerceMedia()

Declaration
public CommerceMedia()

CommerceMedia(ContentReference, String, String, Int32)

Declaration
public CommerceMedia(ContentReference assetLink, string assetType, string groupName, int sortOrder)
Parameters
Type Name Description
EPiServer.Core.ContentReference assetLink
System.String assetType
System.String groupName
System.Int32 sortOrder

CommerceMedia(String, String, String, Int32, Int32)

Declaration
[Obsolete("Use the constructor that takes a ContentReference instead. Will remain at least until November 2016.", false)]
public CommerceMedia(string assetKey, string assetType, string groupName, int sortOrder, int assetIndex)
Parameters
Type Name Description
System.String assetKey
System.String assetType
System.String groupName
System.Int32 sortOrder
System.Int32 assetIndex

Properties

AssetKey

Gets or sets the string representation of the asset key.

Declaration
[Obsolete("Use AssetLink instead. Will remain at least until November 2016.", false)]
public string AssetKey { get; set; }
Property Value
Type Description
System.String

The asset key.

Gets or sets the string representation of the asset link.

Declaration
public ContentReference AssetLink { get; set; }
Property Value
Type Description
EPiServer.Core.ContentReference

The asset link.

AssetType

Gets or sets the string representation of the asset type.

Declaration
public string AssetType { get; set; }
Property Value
Type Description
System.String

The asset type.

GroupName

Gets or sets the asset group that this asset belongs to.

Declaration
public string GroupName { get; set; }
Property Value
Type Description
System.String

The asset group.

PermanentLinkMapper

Gets or sets the permanent link mapper.

Declaration
public Injected<IPermanentLinkMapper> PermanentLinkMapper { get; set; }
Property Value
Type Description
EPiServer.ServiceLocation.Injected<EPiServer.Web.IPermanentLinkMapper>

SortOrder

Gets or sets the asset sortorder

Declaration
public int SortOrder { get; set; }
Property Value
Type Description
System.Int32

The asset sortorder

Methods

Clone()

Declaration
public object Clone()
Returns
Type Description
System.Object

ToItemAssetRow(CatalogEntryDto)

Declaration
public CatalogEntryDto.CatalogItemAssetRow ToItemAssetRow(CatalogEntryDto entryDto)
Parameters
Type Name Description
CatalogEntryDto entryDto
Returns
Type Description
CatalogEntryDto.CatalogItemAssetRow

ToItemAssetRow(CatalogNodeDto)

Declaration
public CatalogNodeDto.CatalogItemAssetRow ToItemAssetRow(CatalogNodeDto nodeDto)
Parameters
Type Name Description
CatalogNodeDto nodeDto
Returns
Type Description
CatalogNodeDto.CatalogItemAssetRow

Implements

System.ICloneable