VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.Sane Namespace / SaneLocalDeviceManager Class / IsSaneAvailable Property
Syntax Example Requirements SeeAlso
In This Topic
IsSaneAvailable Property (SaneLocalDeviceManager)
In This Topic
Gets a value indicating whether the SANE is available.
Syntax
'Declaration

Public ReadOnly Property IsSaneAvailable As Boolean

public bool IsSaneAvailable { get; }

Example

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.");
    }
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6

See Also