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.
Implements
System.ICloneable
    
    EPiServer.Data.Entity.IReadOnly<MediaReference>
    EPiServer.Data.Entity.IReadOnly
  Inherited Members
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public class MediaReference : MediaReferenceBase, ICloneable, 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
Declaration
public ChannelDisplayMediaItem ChannelDisplayMediaItem { get; set; }Property Value
| Type | Description | 
|---|---|
| ChannelDisplayMediaItem | 
PropertyMediaSettings
Declaration
public PropertyMediaSettings PropertyMediaSettings { get; set; }Property Value
| Type | Description | 
|---|---|
| PropertyMediaSettings | 
Methods
Clone()
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)
Declaration
protected override bool Equals(MediaReferenceBase other)Parameters
| Type | Name | Description | 
|---|---|---|
| MediaReferenceBase | other | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Implements
      System.ICloneable
  
  
  
      EPiServer.Data.Entity.IReadOnly<>
  
  
      EPiServer.Data.Entity.IReadOnly