Class MediaShare
The MediaShare class defines a media share
Inheritance
Implements
Inherited Members
Namespace: ImageVault.Common.Data
Assembly: ImageVault.Common.dll
Syntax
public class MediaShare : IItem<string>
Constructors
MediaShare()
Initializes a new instance of the MediaShare class.
Declaration
public MediaShare()
MediaShare(MediaShare)
Initializes a new instance of the MediaShare class and copies the data from the supplied MediaShare.
Declaration
public MediaShare(MediaShare mediaShare)
Parameters
Type | Name | Description |
---|---|---|
MediaShare | mediaShare | The MediaShare to copy the information from |
Properties
Created
Get/Sets the Created of the MediaShare
Declaration
public DateTime Created { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
CreatedBy
Get/Sets the CreatedBy of the MediaShare
Declaration
public string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExpiryDate
Set expiry date on MediaShare.
Declaration
public DateTime? ExpiryDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Id
Get/Sets the Id of the MediaShare
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | This id is part of the url for retrieving the share |
Items
Get/Sets the Items of the MediaShare
Declaration
public List<MediaItem> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<MediaItem> | The set of media items that the share consists of. When creating the share, only the Id of the MediaItem is necessary. |
MediaFormatId
Get/Sets the MediaFormatId of the MediaShare
Declaration
public int MediaFormatId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The id of the MediaFormat that is selected for the share |
Name
Get/Sets the Name of the MediaShare
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CopyFrom(MediaShare)
Copies the data from another media share.
Declaration
public void CopyFrom(MediaShare mediaShare)
Parameters
Type | Name | Description |
---|---|---|
MediaShare | mediaShare | The MediaShare to copy the information from |
Remarks
No references to the copied object is kept. Reference values are cloned.