MediaCollection Class

A collection of media items that make up a playlist (media collection). This class fires notifications when the object is modified.

  public sealed class MediaCollection : Microsoft.MediaCenter.Utility.NotifyCollection<MediaCollectionItem>, IDisposable

Members

Protected Instance Constructor

Method Description
MediaCollection Initializes a new instance of the MediaCollection class.

Public Instance Methods

Method Description
AddItem Adds a media item to the current media collection.
Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Protected Instance Methods

Method Description
ClearItems Removes all media items from the current media collection.
InsertItem Adds an item at a specific index location in the current media collection.
RemoveItem Removes a media item from the current media collection.
SetItem Specifies the item in the collection that is active.

Public Instance Properties

Property Description
ContinueOnError Gets or sets a value that indicates whether to proceed to the next media item in the collection if a playback error occurs.
CurrentIndex Gets or sets the index of the current item in the media collection.
IsActive Gets a value that indicates whether the current media collection is being played.

Public Instance Events

Event Description
PropertyChanged Fires when a property in the current MediaCollection object changes.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also