- code
- Flag that indicates the exception code for which change its message string.
- message
- A character string that contains the current message for code.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub SetCodeMessage( _ ByVal code As BarcodeExceptionCode, _ ByVal message As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
For an example, refer to BarcodeException.GetCodeMessage example.
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.
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