MediaContext.GetProperty Method

Gets the value of the specified property for the current media context.

Note   This method has been deprecated.

Syntax

  MediaContext.GetProperty(
  propertyName
  )

Parameters

propertyName

A String that contains the name of the property to retrieve. The valid property names depend on the context, as follows:

Context Property Description
album AlbumArtist Name of the album artist
  AlbumTitle Name of the album
  Genre Name of the musical genre
  Label Name of the recording label
  ReleaseDate Release date of the album
artist AlbumArtist Name of the recording artist
genre Genre Name of the musical genre
playlist Name Name of the playlist
  URL Name of the playlist file
song AlbumArtist Name of the album recording artist
  AlbumTitle Title of the album
  Genre Genre of the music
  Label Name of the recording label
  ProductionCompany Name of the music production company
  ReleaseDate Date when the album was released
  TrackArtist Name of the artist who recorded the currently playing track
  TrackComposer Name of the composer of the currently playing track
  TrackDuration Total length, in seconds, of the currently playing track
  TrackNumber Number of the currently playing track
  TrackTitle Title of the currently playing track
  Uri URI of the audio file
DVD Name Name of the DVD
  ChapterTitle Title of the currently playing chapter
  Duration Total length, in seconds, of the video
  Uri URI of the DVD media or files
  MPAARating Parental advisory rating of the video
video Name Name of the video
  Title Title of the video
  Duration Total length, in seconds, of the video
  MPAARating Parental advisory rating of the video
  Title Title of the video
  Uri Uri of the video file
picture Name The path and filename of the image
DVR Name Name of the video
  Title Title of the video
  Duration Total length, in seconds, of the video
  Uri URI of the video file

Return Value

A String that contains the value of the property.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista

See Also