Leadtools.Barcode Requires Barcode add-on license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetCodeMessage Method
See Also 
Leadtools.Barcode Namespace > BarcodeException Class : SetCodeMessage Method



code
Flag that indicates the exception code for which change its message string.
message
A character string that contains the current message for code.
code
Flag that indicates the exception code for which change its message string.
message
A character string that contains the current message for code.
Chnages the error string that corresponds the value of the Code property.

Syntax

Visual Basic (Declaration) 
Public Shared Sub SetCodeMessage( _
   ByVal code As BarcodeExceptionCode, _
   ByVal message As String _
) 
Visual Basic (Usage)Copy Code
Dim code As BarcodeExceptionCode
Dim message As String
 
BarcodeException.SetCodeMessage(code, message)
C# 
public static void SetCodeMessage( 
   BarcodeExceptionCode code,
   string message
)
C++/CLI 
public:
static void SetCodeMessage( 
   BarcodeExceptionCode code,
   String^ message
) 

Parameters

code
Flag that indicates the exception code for which change its message string.
message
A character string that contains the current message for code.

Example

For an example, refer to BarcodeException.GetCodeMessage example.

Remarks

By default, BarcodeException has a string message for each flag of the BarcodeExceptionCode. To obtain the error string that corresponds to the Code property value, call the GetCodeMessage 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

Leadtools.Barcode requires a Barcode Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features