LEADTOOLS Barcode (Leadtools.Barcode assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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