LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetCodeMessage Method
See Also 
Leadtools.Wia Namespace > WiaException Class : GetCodeMessage Method



code
A WiaExceptionCode value for which the corresponding error string is being sought.
code
A WiaExceptionCode value for which the corresponding error string is being sought.
Gets the error string that corresponds to a specific WiaExceptionCode.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCodeMessage( _
   ByVal code As WiaExceptionCode _
) As String
Visual Basic (Usage)Copy Code
Dim code As WiaExceptionCode
Dim value As String
 
value = WiaException.GetCodeMessage(code)
C# 
public static string GetCodeMessage( 
   WiaExceptionCode code
)
C++/CLI 
public:
static String^ GetCodeMessage( 
   WiaExceptionCode code
) 

Parameters

code
A WiaExceptionCode value for which the corresponding error string is being sought.

Return Value

A System.String that contains the current message for code.

Example

For an example, refer to SetCodeMessage.

Remarks

By default, WiaException has a string message for each WiaExceptionCode. You can get this message by calling this method. Moreover, you can change any string message for any WiaExceptionCode by using the SetCodeMessage method.

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