Table of Contents

Class Album

Namespace
Microsoft.Xna.Framework.Media
Assembly
MonoGame.Framework.dll

Provides access to an album in the media library

public sealed class Album : IDisposable
Inheritance
Album
Implements
Inherited Members

Remarks

The Album class provides information about an album, including the album's Name, Artist, and Songs.

You can obtain an Album object through the this[int] indexer and the Song.Album property.

Properties

Artist

Gets the Artist of the Album.

public Artist Artist { get; }

Property Value

Artist

Artist of this Album.

Duration

Gets the duration of the Album.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Genre

Gets the Genre of the Album.

public Genre Genre { get; }

Property Value

Genre

HasArt

Gets a value indicating whether the Album has associated album art.

public bool HasArt { get; }

Property Value

bool

IsDisposed

Gets a value indicating whether the object is disposed.

public bool IsDisposed { get; }

Property Value

bool

Name

Gets the name of the Album.

public string Name { get; }

Property Value

string

Songs

Gets a SongCollection that contains the songs on the Album.

public SongCollection Songs { get; }

Property Value

SongCollection

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetAlbumArt()

Returns the stream that contains the album art image data.

public Stream GetAlbumArt()

Returns

Stream

GetHashCode()

Gets the hash code for this instance.

public override int GetHashCode()

Returns

int

GetThumbnail()

Returns the stream that contains the album thumbnail image data.

public Stream GetThumbnail()

Returns

Stream

ToString()

Returns a String representation of this Album.

public override string ToString()

Returns

string