[This is preliminary documentation and subject to change.]

Initializes a new instance with the given metadata properties.


Namespace: MediaMallTechnologies.Plugin
Assembly: Util (in Util.dll)

Syntax

Visual Basic (Declaration)
Public Sub New( _ 
   ByVal id As String,  _ 
   ByVal ownerId As String,  _ 
   ByVal title As String,  _ 
   ByVal path As String,  _ 
   ByVal description As String,  _ 
   ByVal thumbnailUrl As String,  _ 
   ByVal date As Date,  _ 
   ByVal sourceId As String,  _ 
   ByVal mediaProperties As NameValueCollection _ 
)
C#
public SharedMediaFileInfo(
   string id,
   string ownerId,
   string title,
   string path,
   string description,
   string thumbnailUrl,
   DateTime date,
   string sourceId,
   NameValueCollection mediaProperties
)
C++
public:
 SharedMediaFileInfo(
   String id,
   String ownerId,
   String title,
   String path,
   String description,
   String thumbnailUrl,
   DateTime date,
   String sourceId,
   NameValueCollection mediaProperties
) sealed 
J#
public SharedMediaFileInfo(
   string id,
   string ownerId,
   string title,
   string path,
   string description,
   string thumbnailUrl,
   DateTime date,
   string sourceId,
   NameValueCollection mediaProperties
)
JScript
public function SharedMediaFileInfo(
   id : String,
   ownerId : String,
   title : String,
   path : String,
   description : String,
   thumbnailUrl : String,
   date : DateTime,
   sourceId : String,
   mediaProperties : NameValueCollection
)

Parameters

id
The unique ID of this instance. Required.
ownerId
The unique ID of the SharedMediaFolderInfo that contians this instance. Required.
title
The display name. Required.
path
The physical path of the file, or URL to the online stream. Required.
description
An optional textual description of this media. If no description is available, set this to null or an empty string.
thumbnailUrl
A URL or local path to an image icon or thumbnail for this media.
date
The date timestamp for this media. If none is available, set to DateTime.MinValue.
sourceId
A unique string that identifies this media as defined by the content provider. Required.
mediaProperties
A list of optional string-based name/value pairs for arbitrary metadata. Can be null.

Remarks

The sourceId parameter is used to recycle previously utilized ID's for the exact same source media. Typically, this field would be a unique key as defined by the content provider, and which is guaranteed to remain constant over time. Examples include a unique URL for a given piece of media, or a specific media ID assigned by the content provider.

See Also