←Select platform

GetCodeMessage Method

Summary

Gets the error string that corresponds to a specific TwainExceptionCode

Syntax

C#
VB
C++
public static string GetCodeMessage( 
   TwainExceptionCode code 
) 
Public Shared Function GetCodeMessage( _ 
   ByVal code As Leadtools.Twain.TwainExceptionCode _ 
) As String 
public: 
static String^ GetCodeMessage(  
   Leadtools.Twain.TwainExceptionCode code 
)  

Parameters

code
A TwainExceptionCode value to get the string message for.

Return Value

A 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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly