Leadtools TWAIN (Leadtools.Twain assembly)

GetCodeMessage Method

Show in webframe





A TwainExceptionCode value to get the string message for.
Gets the error string that corresponds to a specific TwainExceptionCode
Syntax
public static string GetCodeMessage( 
   TwainExceptionCode code
)
'Declaration
 
Public Shared Function GetCodeMessage( _
   ByVal code As TwainExceptionCode _
) As String
'Usage
 
Dim code As TwainExceptionCode
Dim value As String
 
value = TwainException.GetCodeMessage(code)

            

            
public:
static String^ GetCodeMessage( 
   TwainExceptionCode code
) 

Parameters

code
A TwainExceptionCode value to get the string message for.

Return Value

A System.String that contains the current message for code
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.
Example
For an example, refer to SetCodeMessage.
Requirements

Target Platforms

See Also

Reference

TwainException Class
TwainException Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.