[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 duration As Long, _ ByVal bitrate As Integer, _ ByVal genre As String, _ ByVal album As String, _ ByVal artist As String, _ ByVal trackNumber As Integer _ ) |
| C# |
|---|
| public AudioResource( string id, string ownerId, string title, string path, string description, string thumbnailUrl, DateTime date, string sourceId, NameValueCollection mediaProperties, long duration, int bitrate, string genre, string album, string artist, int trackNumber ) |
| C++ |
|---|
| public: AudioResource( String id, String ownerId, String title, String path, String description, String thumbnailUrl, DateTime date, String sourceId, NameValueCollection mediaProperties, __int64 duration, int bitrate, String genre, String album, String artist, int trackNumber ) sealed |
| J# |
|---|
| public AudioResource( string id, string ownerId, string title, string path, string description, string thumbnailUrl, DateTime date, string sourceId, NameValueCollection mediaProperties, long duration, int bitrate, string genre, string album, string artist, int trackNumber ) |
| JScript |
|---|
| public function AudioResource( id : String, ownerId : String, title : String, path : String, description : String, thumbnailUrl : String, date : DateTime, sourceId : String, mediaProperties : NameValueCollection, duration : long, bitrate : int, genre : String, album : String, artist : String, trackNumber : int ) |
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 media. 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.
- duration
- The length of this media in milliseconds. Set to 0 if unavailable.
- bitrate
- The bitrate of this media (in bps). Set to 0 if unavailable.
- genre
- The genre of this media. Set to null or empty string if unavailable.
- album
- The album of this media. Set to null or empty string if unavailable.
- artist
- The artist of this media. Set to null or empty string if unavailable.
- trackNumber
- The track number of this audio, if relevant. Set to -1 if unavailable.