MediaExperience.GetMediaCollection Method

Retrieves the media collection that was last played. Applications can restore the collection and continue playback.


  public void GetMediaCollection(
  MediaCollection  destination



Microsoft.MediaCenter.MediaCollection.  The last media collection that was played.

Return Value

This method does not return a value.


This method only returns media collections that were created by Windows Media Center applications. This method does not return playlists that the user created in the main Windows Media Center experience.

Only the application that created the media collection can modify it. The collection is read-only for other applications.


Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also