Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
GetCodeMessage Method
See Also 
Leadtools.Twain Namespace > TwainException Class : GetCodeMessage Method




code
A TwainExceptionCode value to get the string message for.
Gets the error string that corresponds to a specific TwainExceptionCode

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCodeMessage( _
   ByVal code As TwainExceptionCode _
) As String
Visual Basic (Usage)Copy Code
Dim code As TwainExceptionCode
Dim value As String
 
value = TwainException.GetCodeMessage(code)
C# 
public static string GetCodeMessage( 
   TwainExceptionCode code
)
Managed Extensions for C++ 
public: static string* GetCodeMessage( 
   TwainExceptionCode code
) 
C++/CLI 
public:
static String^ GetCodeMessage( 
   TwainExceptionCode code
) 

Parameters

code
A TwainExceptionCode value to get the string message for.

Return Value

A String that contains the current message for code

Example

For an example, refer to SetCodeMessage.

Remarks

By default, TwainException has a string message for each TwainExceptionCode. You can get this message by calling this method. Moreever, you can change any string message for any TwainExceptionCode by using the SetCodeMessage method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also