public sealed class MP3valWrapper : IDisposable
Public NotInheritable Class MP3valWrapper
Implements IDisposable
Dim instance As MP3valWrapper
public ref class MP3valWrapper sealed : IDisposable
[<SealedAttribute>]
type MP3valWrapper =
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.
Public Class Form1 : Inherits Form
Friend WithEvents MP3Val As New MP3ValWrapper("C:\Program Files (x86)\MP3 Val\mp3val.exe")
Private Sub Test() Handles MyBase.Shown
' Analyzes an MP3 file.
MP3Val.Analyze("C:\File.mp3")
' Fix an MP3 file.
MP3Val.Fix("C:\File.mp3")
End Sub
Private Sub MP3Val_Started(ByVal sender As Object, ByVal e As MP3ValStartedEventArgs) _
Handles MP3Val.Started
Dim sb As New System.Text.StringBuilder
With sb
.AppendLine(String.Format("Starting a ""{0}"" task", e.Task.ToString()))
.AppendLine(String.Format("Input file is: ""{0}""", e.File))
.AppendLine(String.Format("mp3val.exe process id. (PID) is: {0}", CStr(DirectCast(sender, MP3ValWrapper).Process.Id)))
End With
Debug.WriteLine(String.Format("Start Time: {0}", Date.Now.ToLongTimeString))
Debug.WriteLine(sb.ToString())
End Sub
Private Sub MP3Val_Exited(ByVal sender As Object, ByVal e As MP3ValExitedEventArgs) _
Handles MP3Val.Exited
Dim sb As New System.Text.StringBuilder
sb.AppendLine(String.Format("Finished a ""{1}"" task in file ""{2}""{0}",
Environment.NewLine,
e.Task.ToString(),
e.File))
sb.AppendLine(String.Format("File information:{0}{1}{0}",
Environment.NewLine,
e.InfoMessage))
sb.AppendLine("Warnings found:")
If e.Warnings.Count <> 0 Then
For Each wrn As String In e.Warnings
sb.AppendLine(wrn)
Next wrn
Else
sb.AppendLine("Any" & Environment.NewLine)
End If
sb.AppendLine("Errors found:")
If e.Errors.Count <> 0 Then
For Each err As String In e.Errors
sb.AppendLine(err)
Next err
Else
sb.AppendLine("Any" & Environment.NewLine)
End If
sb.AppendLine(String.Format("File need fix?: {0}",
CStr(e.FileNeedFix)))
If e.Task = MP3ValTask.Fix Then
sb.AppendLine(String.Format("File was fixed?: {0}",
CStr(e.FileIsFixed)))
End If
Debug.WriteLine(sb.ToString())
Debug.WriteLine(String.Format("End Time: {0}", Date.Now.ToLongTimeString))
End Sub
End Class
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.
MP3valWrapper | Initializes a new instance of the MP3valWrapper class. |
Exists | Gets a value indicating whether the MP3Val.exe file Exists. |
FilePath | Gets the MP3Val.exe filepath. |
Process | Gets the MP3Val.exeProcess instance. |
Analyze(FileInfo) | Analyzes a file for errors. |
Analyze(String) | Analyzes a file for errors. |
Dispose | Releases all the resources used by this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Fix(FileInfo, Boolean, Boolean) | Tries to fix problems in the specified audio file. |
Fix(String, Boolean, Boolean) | Tries to fix problems in the specified audio file. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Exited | Event raised when the MP3Val.exe process has exited. |
Started | Event raised when the MP3Val.exe process has been started. |
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) |