Class Song
Provides access to a song in the song library.
public sealed class Song : IEquatable<Song>, IDisposable
- Inheritance
-
Song
- Implements
- Inherited Members
Properties
Album
Gets the Album on which the Song appears.
public Album Album { get; }
Property Value
Artist
Gets the Artist of the Song.
public Artist Artist { get; }
Property Value
Duration
Gets the duration of the Song.
public TimeSpan Duration { get; }
Property Value
Genre
Gets the Genre of the Song.
public Genre Genre { get; }
Property Value
IsDisposed
Gets a value indicating whether the object is disposed.
public bool IsDisposed { get; }
Property Value
IsProtected
Gets a value that indicates whether the song is DRM protected content.
public bool IsProtected { get; }
Property Value
IsRated
Gets a value that indicates whether the song has been rated by the user.
public bool IsRated { get; }
Property Value
Name
Gets the name of the Song.
public string Name { get; }
Property Value
PlayCount
Gets the song play count.
public int PlayCount { get; }
Property Value
Position
Gets the position of the Song.
public TimeSpan Position { get; }
Property Value
Rating
Gets the user's rating for the Song.
public int Rating { get; }
Property Value
- int
User's rating for this Song, or 0 if the song is unrated. Ratings range from 1 (dislike the most) to 10 (like the most).
TrackNumber
Gets the track number of the song on the song's Album.
public int TrackNumber { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(Song)
Determines whether two instances of Song are equal.
public bool Equals(Song song)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
~Song()
protected ~Song()
FromUri(string, Uri)
Returns a song that can be played via MediaPlayer.
public static Song FromUri(string name, Uri uri)
Parameters
Returns
GetHashCode()
Gets the hash code for this instance.
public override int GetHashCode()
Returns
Operators
operator ==(Song, Song)
Determines whether the specified Song instances are equal.
public static bool operator ==(Song song1, Song song2)
Parameters
Returns
operator !=(Song, Song)
Determines whether the specified Song instances are not equal.
public static bool operator !=(Song song1, Song song2)