public sealed class MP3File : IDisposable
Public NotInheritable Class MP3File
Implements IDisposable
Dim instance As MP3File
public ref class MP3File sealed : IDisposable
[<SealedAttribute>]
type MP3File =
class
interface IDisposable
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Using file As New Mp3File("C:\File.mp3")
If file.IsCorrupt Then
MsgBox(file.CorruptionReasons)
End If
file.Cover = Image.FromFile("C:\Cover.jpg")
With file.Tags.ID3v1
.Title = "Title ID3v1"
.Album = "Album ID3v1"
.Artist = "Artist ID3v1"
.Genre = "Pop"
.Year = 2001
.Track = 1
.Comment = "Comment ID3v1"
End With
With file.Tags.ID3v2
.Title = "Title ID3v2"
.Album = "Album ID3v2"
.Artist = "Artist ID3v2"
.Composer = "Composer ID3v2"
.Genre = "Pop"
.Year = 2002
.Bpm = 202
.Disc = 2
.Track = 2
.Comment = "Comment ID3v2"
.Copyright = "Copyright ID3v2"
End With
If file.TagTypes.HasFlag(Mp3TagTypes.Apev2) Then
file.Tags.APEv2.Remove()
End If
file.SaveFile()
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
MP3File(AudioFile) | Initializes a new instance of the MP3File class. |
MP3File(FileInfo) | Initializes a new instance of the MP3File class. |
MP3File(String) | Initializes a new instance of the MP3File class. |
CorruptionReasons | Gets the reasons, if any, for which the file is corrupt. |
Cover | Gets or sets the cover of the audio file. |
File | Gets the audio file. |
IsCorrupt | Gets a value indicating whether the audio file is possibly corrupt. |
IsWriteable | Gets a value indicating whether the tags can be written or not in the audio file. |
Lyrics | Gets or sets the lyrics of the audio file. |
Tags | Gets the MP3 tags. |
TagTypes | Gets the tag types of the audio file (Id3v1, Id3v2, APE, etc). |
Dispose | Releases all the resources used by this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
SaveFile | Saves any tag modifications to the audio file. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |