ArtistCollection Class

The collection of all artists in the media library.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public sealed class ArtistCollection : IEnumerable<Artist>, IEnumerable, IDisposable

The ArtistCollection class provides access to all artists in the device's media library.

Use the MediaLibrary.Artists property to obtain the artist collection.

The ArtistCollection does not immediately instantiate instances of all artists in the collection. Instead, individual Artist objects are created each time an artist is accessed through the collection's Item indexer.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7