4 out of 4 rated this helpful - Rate this topic

MediaHistory Class

July 26, 2012

The MediaHistory class contains information about media items that are newly acquired, recently played, or currently playing.

System.Object
  Microsoft.Devices.MediaHistory

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public sealed class MediaHistory

The MediaHistory type exposes the following members.

  NameDescription
Public propertyNowPlayingGets the most recent MediaHistoryItem in the media history, or sets the supplied MediaHistoryItem into the Now Playing section of the Music + Videos Hub.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodWriteAcquiredItemAdds a MediaHistoryItem that an application recently acquired for the user.
Public methodWriteRecentPlayAdds a MediaHistoryItem that an application has recently played for the user.
Top
  NameDescription
Public fieldStatic memberInstanceReturns a singleton that represents the MediaHistory class.
Top

When new MediaHistoryItem instances are added, the object's metadata is inserted into a list of content that is owned by the Music + Videos Hub. The images provided in the MediaHistoryItem instances are copied into the media library storage area.

For more information about the Music + Videos Hub, see How to: Integrate with the Music and Videos Hub for Windows Phone.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.