Determines whether a TWAIN source is installed.
Syntax
Parameters
- owner
- Window handle of the application window.
Return Value
true if at least one TWAIN source is installed, false if no TWAIN source is installed.
Example
Visual Basic | Copy Code |
---|
Public Sub IsAvailableExample(ByVal parent As IWin32Window)
Dim twainAvailable As Boolean = TwainSession.IsAvailable(parent)
If twainAvailable Then
MessageBox.Show("Twain is installed")
Else
MessageBox.Show("Twain is not installed")
End If
End Sub |
C# | Copy Code |
---|
public void IsAvailableExample(IWin32Window parent)
{
bool twainAvailable = TwainSession.IsAvailable(parent);
if (twainAvailable)
MessageBox.Show("Twain is installed");
else
MessageBox.Show("Twain is not installed");
} |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also