VintaSoft Twain .NET SDK 14.1: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / TwainDeviceException Class / TwainDeviceException Constructors / TwainDeviceException Constructor(String,Exception)
Syntax Requirements SeeAlso
In This Topic
    TwainDeviceException Constructor(String,Exception)
    In This Topic
    Initializes a new instance of the TwainDeviceException class with a specified error message and a reference to the inner exception that is the cause of this exception.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal message
    The error message that explains the reason for the exception.
    As String, _
    ByVal innerException
    The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
    As System.Exception _
    )
    public TwainDeviceException(
    string message,
    System.Exception innerException
    )
    public: TwainDeviceException(
    string* message,
    System.Exception* innerException
    )
    public:
    TwainDeviceException(
    string^ message,
    System.Exception^ innerException
    )

    Parameters

    message
    The error message that explains the reason for the exception.
    innerException
    The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also