Table of Contents

Class Genre

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

Provides access to genre information in the media library.

public sealed class Genre : IDisposable
Inheritance
Genre
Implements
Inherited Members

Remarks

The Genre class provides information about a genre, including the genre's Name, and the Albums and Songs in that genre that are on the device.

You can obtain a Genre object through the Album.Genre and Song.Genre properties.

Constructors

Genre(string)

Creates a new instance of Genre class.

public Genre(string genre)

Parameters

genre string

Name of the genre.

Properties

Albums

Gets the AlbumCollection for the Genre.

public AlbumCollection Albums { get; }

Property Value

AlbumCollection

IsDisposed

Gets a value indicating whether the object is disposed.

public bool IsDisposed { get; }

Property Value

bool

Name

Gets the name of the Genre.

public string Name { get; }

Property Value

string

Songs

Gets the SongCollection for the Genre.

public SongCollection Songs { get; }

Property Value

SongCollection

Methods

Dispose()

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

public void Dispose()

GetHashCode()

Gets the hash code for this instance.

public override int GetHashCode()

Returns

int

ToString()

Returns a String representation of the Genre.

public override string ToString()

Returns

string