IsSaneAvailable Property (SaneLocalDeviceManager)
Gets a value indicating whether the SANE is available.
This C#/VB.NET code shows how to check that SANE is available in the system.
''' <summary>
''' Checks that SANE is available in the system.
''' </summary>
Private Sub CheckSane()
' create the SANE device manager
Using deviceManager As New Vintasoft.Sane.SaneLocalDeviceManager()
If deviceManager.IsSaneAvailable Then
System.Console.WriteLine("SANE is available.")
Else
System.Console.WriteLine("SANE is NOT available.")
End If
End Using
End Sub
/// <summary>
/// Checks that SANE is available in the system.
/// </summary>
void CheckSane()
{
// create the SANE device manager
using (Vintasoft.Sane.SaneLocalDeviceManager deviceManager = new Vintasoft.Sane.SaneLocalDeviceManager())
{
if (deviceManager.IsSaneAvailable)
System.Console.WriteLine("SANE is available.");
else
System.Console.WriteLine("SANE is NOT available.");
}
}
Target Platforms: .NET 8, .NET 7; .NET 6