Class Song
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
public TimeSpan Duration { get; }
Property Value
Genre
Gets the Genre of the Song.
public Genre Genre { get; }
Property Value
IsDisposed
public bool IsDisposed { get; }
Property Value
IsProtected
public bool IsProtected { get; }
Property Value
IsRated
public bool IsRated { get; }
Property Value
Name
public string Name { get; }
Property Value
PlayCount
public int PlayCount { get; }
Property Value
Position
public TimeSpan Position { get; }
Property Value
Rating
public int Rating { get; }
Property Value
TrackNumber
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)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Song song)
Parameters
song
Song
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()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(Song, Song)
public static bool operator ==(Song song1, Song song2)
Parameters
Returns
operator !=(Song, Song)
public static bool operator !=(Song song1, Song song2)