IsSaneAvailable Свойство (SaneLocalDeviceManager)
 
            Возвращает значение, указывающее, доступен ли SANE.
            
            
Вот C#/VB.NET код, который демонстрирует, как проверить доступность SANE в системе.
    
	
	    
	    
''' <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.");
    }
}
	     
	 
 
 
Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6