Class Album
Namespace: Microsoft.Xna.Framework.Media
Assembly: MonoGame.Framework.dll
Syntax
public sealed class Album : IDisposable
Properties
Artist
Declaration
public Artist Artist { get; }
Property Value
Type | Description |
---|---|
Artist |
Duration
Gets the duration of the Album.
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Genre
Gets the Genre of the Album.
Declaration
public Genre Genre { get; }
Property Value
Type | Description |
---|---|
Genre |
HasArt
Gets a value indicating whether the Album has associated album art.
Declaration
public bool HasArt { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsDisposed
Gets a value indicating whether the object is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Gets the name of the Album.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Songs
Gets a SongCollection that contains the songs on the album.
Declaration
public SongCollection Songs { get; }
Property Value
Type | Description |
---|---|
SongCollection |
Methods
Dispose()
Immediately releases the unmanaged resources used by this object.
Declaration
public void Dispose()
GetAlbumArt()
Returns the stream that contains the album art image data.
Declaration
public Stream GetAlbumArt()
Returns
Type | Description |
---|---|
Stream |
GetHashCode()
Gets the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
GetThumbnail()
Returns the stream that contains the album thumbnail image data.
Declaration
public Stream GetThumbnail()
Returns
Type | Description |
---|---|
Stream |
ToString()
Returns a String representation of this Album.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |