VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / TwainException Class / TwainException Constructors / TwainException Constructor(String,Exception)
Syntax Requirements SeeAlso
In This Topic
    TwainException Constructor(String,Exception)
    In This Topic
    Initializes a new instance of the TwainException 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 TwainException(
    string message,
    System.Exception innerException
    )
    public: TwainException(
    string* message,
    System.Exception* innerException
    )
    public:
    TwainException(
    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