Class MediaReference
This class describes the data stored in the PropertyMedia and is used as a reference to lookup media from ImageVault. Here we store the Id of the selected media, edits for the media and additional metadata entered by the EPiServer editor.
Inherited Members
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public class MediaReference : MediaReferenceBase, IReadOnlyItem<MediaReferenceBase>
Constructors
MediaReference()
Initializes a new instance of the MediaReference class.
Declaration
public MediaReference()
MediaReference(MediaReference)
Initializes a new instance of the MediaReference class.
Declaration
public MediaReference(MediaReference mediaReference)
Parameters
Type | Name | Description |
---|---|---|
MediaReference | mediaReference |
Properties
ChannelDisplayMediaItem
The cached ChannelDisplayMediaItem
Declaration
public ChannelDisplayMediaItem ChannelDisplayMediaItem { get; set; }
Property Value
Type | Description |
---|---|
ChannelDisplayMediaItem |
PropertyMediaSettings
Settings for the MediaReference
Declaration
public PropertyMediaSettings PropertyMediaSettings { get; set; }
Property Value
Type | Description |
---|---|
PropertyMediaSettings |
Methods
Clone()
Clones the MediaReferenceBase to a new instance
Declaration
public override MediaReferenceBase Clone()
Returns
Type | Description |
---|---|
MediaReferenceBase |
Overrides
CreateWritableClone()
Creates a new object that is a copy of the current instance.
Declaration
public MediaReference CreateWritableClone()
Returns
Type | Description |
---|---|
MediaReference | A new object that is a copy of this instance. |
Equals(MediaReferenceBase)
Determines whether the specified MediaReferenceBase is equal to the current MediaReferenceBase.
Declaration
protected override bool Equals(MediaReferenceBase other)
Parameters
Type | Name | Description |
---|---|---|
MediaReferenceBase | other | The MediaReferenceBase to compare with the current MediaReferenceBase. |
Returns
Type | Description |
---|---|
Boolean | true if the specified MediaReferenceBase is equal to the current MediaReferenceBase; otherwise, false. |