[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,  _ 
   ByVal dimensions As String _ 
)
C#
public ImageResource(
   string id,
   string ownerId,
   string title,
   string path,
   string description,
   string thumbnailUrl,
   DateTime date,
   string sourceId,
   NameValueCollection mediaProperties,
   string dimensions
)
C++
public:
 ImageResource(
   String id,
   String ownerId,
   String title,
   String path,
   String description,
   String thumbnailUrl,
   DateTime date,
   String sourceId,
   NameValueCollection mediaProperties,
   String dimensions
) sealed 
J#
public ImageResource(
   string id,
   string ownerId,
   string title,
   string path,
   string description,
   string thumbnailUrl,
   DateTime date,
   string sourceId,
   NameValueCollection mediaProperties,
   string dimensions
)
JScript
public function ImageResource(
   id : String,
   ownerId : String,
   title : String,
   path : String,
   description : String,
   thumbnailUrl : String,
   date : DateTime,
   sourceId : String,
   mediaProperties : NameValueCollection,
   dimensions : String
)

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 image. Required.
description
An optional textual description of this image. 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 image.
date
The date timestamp for this image (eg. "Date Picture Taken"). If none is available, set to DateTime.MinValue.
sourceId
A unique string that identifies this image as defined by the content provider. Required.
mediaProperties
A list of optional string-based name/value pairs for arbitrary metadata. Can be null.
dimensions
The size of this image in pixels as "widthxheight". Can be null or empty if unknown.

See Also