Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Code Property
See Also 
Leadtools.Twain Namespace > TwainException Class : Code Property



Gets or sets the code that caused this exception.

Syntax

Visual Basic (Declaration) 
Public Property Code As TwainExceptionCode
Visual Basic (Usage)Copy Code
Dim instance As TwainException
Dim value As TwainExceptionCode
 
instance.Code = value
 
value = instance.Code
C# 
public TwainExceptionCode Code {get; set;}
C++/CLI 
public:
property TwainExceptionCode Code {
   TwainExceptionCode get();
   void set (    TwainExceptionCode value);
}

Property Value

An TwainExceptionCode value that specifies what caused this exception.

Example

For an example, refer to TwainException

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