Class Genre
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
stringName of the genre.
Properties
Albums
Gets the AlbumCollection for the Genre.
public AlbumCollection Albums { get; }
Property Value
IsDisposed
Gets a value indicating whether the object is disposed.
public bool IsDisposed { get; }
Property Value
Name
Gets the name of the Genre.
public string Name { get; }
Property Value
Songs
Gets the SongCollection for the Genre.
public SongCollection Songs { get; }
Property Value
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
ToString()
Returns a String representation of the Genre.
public override string ToString()