MediaTagInfo Class

Represents the metadata tags of a media file.

public sealed class MediaTagInfo

Constructors

NameDescription
MediaTagInfo()

MediaTagInfo()

MediaTagInfo.cs
public MediaTagInfo()

No documentation is available.

Properties

NameDescription
AlbumGets or sets the album name.
AlbumArtistGets or sets the album artist.
ArtistGets or sets the performing artist.
BpmGets or sets the beats per minute. Must not be negative.
CommentGets or sets a comment or description.
ComposerGets or sets the composer.
ConductorGets or sets the conductor.
CopyrightGets or sets the copyright information.
CustomFieldsGets the collection of custom or format-specific metadata fields.
DiscNumberGets or sets the disc number. Must not be negative.
DiscTotalGets or sets the total number of discs. Must not be negative.
DurationGets or sets the media duration.
FormatGets or sets the source format that the tags were read from.
GenreGets or sets the genre.
IsCompilationGets or sets whether this track is part of a compilation.
IsrcGets or sets the ISRC (International Standard Recording Code).
LyricsGets or sets the track lyrics.
MusicBrainzAlbumIdGets or sets the MusicBrainz album ID.
MusicBrainzArtistIdGets or sets the MusicBrainz artist ID.
MusicBrainzReleaseGroupIdGets or sets the MusicBrainz release group ID.
MusicBrainzTrackIdGets or sets the MusicBrainz recording ID.
PicturesGets the list of embedded pictures (album art).
ReplayGainGets or sets ReplayGain loudness normalization values.
TitleGets or sets the title of the track.
TrackNumberGets or sets the track number. Must not be negative.
TrackTotalGets or sets the total number of tracks. Must not be negative.
YearGets or sets the year of release. Must be between 0 and 9999.

Gets or sets the album name.

public string? Album { get; set; }

Property value

string?

AlbumArtist

MediaTagInfo.cs

Gets or sets the album artist.

public string? AlbumArtist { get; set; }

Property value

string?

Gets or sets the performing artist.

public string? Artist { get; set; }

Property value

string?

Gets or sets the beats per minute. Must not be negative.

public int? Bpm { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets a comment or description.

public string? Comment { get; set; }

Property value

string?

Gets or sets the composer.

public string? Composer { get; set; }

Property value

string?

Gets or sets the conductor.

public string? Conductor { get; set; }

Property value

string?

CustomFields

MediaTagInfo.cs

Gets the collection of custom or format-specific metadata fields.

public IDictionary<string, string> CustomFields { get; }

DiscNumber

MediaTagInfo.cs

Gets or sets the disc number. Must not be negative.

public int? DiscNumber { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets the total number of discs. Must not be negative.

public int? DiscTotal { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets the media duration.

public TimeSpan? Duration { get; set; }

Property value

TimeSpan?

Gets or sets the source format that the tags were read from.

public MediaFormat? Format { get; set; }

Property value

MediaFormat?

Gets or sets the genre.

public string? Genre { get; set; }

Property value

string?

IsCompilation

MediaTagInfo.cs

Gets or sets whether this track is part of a compilation.

public bool? IsCompilation { get; set; }

Property value

bool?

Gets or sets the ISRC (International Standard Recording Code).

public string? Isrc { get; set; }

Property value

string?

Gets or sets the track lyrics.

public string? Lyrics { get; set; }

Property value

string?

MusicBrainzAlbumId

MediaTagInfo.cs

Gets or sets the MusicBrainz album ID.

public string? MusicBrainzAlbumId { get; set; }

Property value

string?

MusicBrainzArtistId

MediaTagInfo.cs

Gets or sets the MusicBrainz artist ID.

public string? MusicBrainzArtistId { get; set; }

Property value

string?

MusicBrainzReleaseGroupId

MediaTagInfo.cs

Gets or sets the MusicBrainz release group ID.

public string? MusicBrainzReleaseGroupId { get; set; }

Property value

string?

MusicBrainzTrackId

MediaTagInfo.cs

Gets or sets the MusicBrainz recording ID.

public string? MusicBrainzTrackId { get; set; }

Property value

string?

Gets the list of embedded pictures (album art).

public IList<MediaPicture> Pictures { get; }

Property value

IList<MediaPicture>

ReplayGain

MediaTagInfo.cs

Gets or sets ReplayGain loudness normalization values.

public ReplayGainInfo? ReplayGain { get; set; }

Property value

ReplayGainInfo?

Gets or sets the title of the track.

public string? Title { get; set; }

Property value

string?

TrackNumber

MediaTagInfo.cs

Gets or sets the track number. Must not be negative.

public int? TrackNumber { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative.

TrackTotal

MediaTagInfo.cs

Gets or sets the total number of tracks. Must not be negative.

public int? TrackTotal { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets the year of release. Must be between 0 and 9999.

public int? Year { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is negative or greater than 9999.